admin.forestWeeklyBackup( backup-dir as String, backup-period as Number, days as String[], start-time as (Number|String) ) as element(as.forestBackup)
This function constructs a weekly scheduled backup.
const admin = require('/MarkLogic/admin.xqy'); admin.forestWeeklyBackup("/backupDir", 2, "monday", xs.time("09:45:00")) //returns the weekly backup specification
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.