Loading TOC...

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');
  const config = admin.getConfiguration()
      admin.forestMinutelyBackup("/backupDir", 45)

   //returns the minutely forest backup specification. 
   

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