admin:database-monthly-backup( $backup-dir as xs:string, $backup-period as xs:positiveInteger, $backup-month-day as xs:unsignedLong, $start-time as xs:time, $max-backups as xs:unsignedLong, $backup-security-db as xs:boolean, $backup-schemas-db as xs:boolean, $backup-triggers-db as xs:boolean, [$include-replicas as xs:boolean], [$journal-archiving as xs:boolean?], [$journal-archive-path as xs:string?], [$lag-limit as xs:unsignedLong?] ) as element(db:database-backup)
This function constructs a monthly scheduled backup specification.
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; admin:database-monthly-backup("/backup-dir", 2, 1, xs:time("09:45:00"),10,true(),true(),true()) (: returns the monthly backup specification :)
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; admin:database-monthly-backup("/backup-dir", 2, 1, xs:time("09:45:00"),10,true(),true(),true(),false(),true(),(),500) (: returns the monthly backup specification :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.