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