Loading TOC...


   backup-dir as String,
   backup-period as Number,
   backup-month-day as Number,
   start-time as (Number|String)
) as element(as.forestBackup)


This function constructs a monthly scheduled backup.

backup-dir The directory where the backup will be saved to.
backup-period The number of months to elapse between each backup.
backup-month-day The day of the month the backup will happen (between 1 and 31)
start-time A time for the scheduled backup to start.


  const admin = require('/MarkLogic/admin.xqy');
  admin.forestMonthlyBackup("/backupDir", 1, 1, xs.time("09:45:00"))

   //returns the monthly backup specification 

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