MarkLogic 9 Product Documentation
admin.forestMinutelyBackup

admin.forestMinutelyBackup(
   backup-dir as String,
   backup-period as Number
) as element(as.forestBackup)

Summary

This function constructs a scheduled forest backup on a number-of-minutes basis.

Parameters
backup-dir The directory to save the backup.
backup-period The number of minutes to elapse between each backup

Example

  
  const admin = require('/MarkLogic/admin.xqy');
  var config = admin.getConfiguration()
      admin.forestMinutelyBackup("/backupDir", 45)

   //returns the minutely forest backup specification. 
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy