
admin:forest-minutely-backup( $backup-dir as xs:string, $backup-period as xs:positiveInteger ) as element(as:forest-backup)
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 |
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin"
at "/MarkLogic/admin.xqy";
let $config := admin:get-configuration()
return
admin:forest-minutely-backup("/backup-dir", 45)
(: returns the minutely forest backup specification. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.