admin.forestDailyBackup( backup-dir as String, backup-period as Number, start-time as (Number|String) ) as element(as.forestBackup)
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. |
const admin = require('/MarkLogic/admin.xqy'); admin.forestDailyBackup("/backupDir", 2, xs.time("19:45:00")) //returns a daily forest backup specification.