Loading TOC...

admin.forestDailyBackup

admin.forestDailyBackup(
   $backup-dir as String,
   $backup-period as Number,
   $start-time as (Number|String)
) as element(as.forestBackup)

Summary

This function constructs a daily scheduled forest backup.

Parameters
$backup-dir The directory to save the backup.
$backup-period The number of days to elapse between each backup.
$start-time The time of day of the backup, in 24:00:00 notation.

Example

  
  const admin = require('/MarkLogic/admin.xqy');
  admin.forestDailyBackup("/backupDir", 2, xs.time("19:45:00"))

   //returns a daily forest backup specification. 
    

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