
admin.forestOneTimeBackup( backup-dir as String, start as Date ) as element(as.forestBackup)
This function constructs a one-time backup.
| Parameters | |
|---|---|
| backup-dir | The directory where the backup will be saved to. | 
| start | The starting dateTime of the scheduled backup. | 
  
  const admin = require('/MarkLogic/admin.xqy');
  admin.forestOneTimeBackup("/backupDir",
        xs.dateTime("2008-02-14T09:45:00"))
   //returns the oneTime backup