admin:forest-one-time-backup( $backup-dir as xs:string, $start as xs:dateTime ) as element(as:forest-backup)
This function constructs a one-time backup.
Parameters | |
---|---|
backup-dir | The directory where the backup will be saved to. |
start | The starting dateTime of the scheduled backup. |
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; admin:forest-one-time-backup("/backup-dir", xs:dateTime("2008-02-14T09:45:00")) (: returns the one-time backup :)