Source: site.view [edit]
Function name: restoreBackup
Arguments: unusedArg
Description: Putting an unused Arg just to see if that stops web crawlers from running this command.
Page type: webl
Render function:  
Module: demavu

Page source:

var db = Wub_GetDB("demavu");

var coll = Wub_GetCollection(db, "data");

Wub_RemoveDB(coll, Wub_NewDBObject([. .]));

var objs = WubCall("demavu.data4", []);

every obj in objs do
   DeleteField(obj, "_id");
   var dbobj = Wub_NewDBObject(obj);
   Wub_InsertDB(coll, dbobj);
 
end;

Size(objs);