Loading TOC...

MarkLogic 12 EA 2 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 
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.