MarkLogic 12 EA 1 Product Documentation
admin.forestOneTimeBackup

admin.forestOneTimeBackup(
   backup-dir as String,
   start as Date
) as element(as.forestBackup)

Summary

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.

Example

  
  const admin = require('/MarkLogic/admin.xqy');
  admin.forestOneTimeBackup("/backupDir",
        xs.dateTime("2008-02-14T09:45:00"))

   //returns the oneTime backup 
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy