admin: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)
This function constructs a weekly scheduled backup.
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 :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.