admin.forestMonthlyBackup( 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.
const admin = require('/MarkLogic/admin.xqy'); admin.forestMonthlyBackup("/backupDir", 1, 1, xs.time("09:45:00")) //returns the monthly backup specification
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.