admin.forestMinutelyBackup( backup-dir as String, backup-period as Number ) as element(as.forestBackup)
This function constructs a scheduled forest backup on a number-of-minutes basis.
Parameters | |
---|---|
backup-dir | The directory to save the backup. |
backup-period | The number of minutes to elapse between each backup |
const admin = require('/MarkLogic/admin.xqy'); var config = admin.getConfiguration() admin.forestMinutelyBackup("/backupDir", 45) //returns the minutely forest backup specification.