MarkLogic 10 Product Documentation
admin:forest-weekly-backupadmin:forest-weekly-backup(
$backup-dir as xs:string,
$backup-period as xs:positiveInteger,
$days as xs:string+,
$start-time as xs:time
) as element(as:forest-backup)
Summary
This function constructs a weekly scheduled backup.
Parameters |
backup-dir |
The directory where the backup will be saved to.
|
backup-period |
The how many weeks between each backup.
|
days |
The day(s) of the week. Must be a sequence of zero
or more of monday , tuesday ,
wednesday , thursday ,
friday , saturday ,
sunday .
|
start-time |
A time for the scheduled backup to start.
|
Example
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin"
at "/MarkLogic/admin.xqy";
admin:forest-weekly-backup("/backup-dir", 2, "monday", xs:time("09:45:00"))
(: returns the weekly backup specification :)
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.