Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin:forest-monthly-backup

admin:forest-monthly-backup(
   $backup-dir as xs:string,
   $backup-period as xs:positiveInteger,
   $backup-month-day as xs:unsignedInt,
   $start-time as xs:time
) as element(as:forest-backup)

Summary

This function constructs a monthly scheduled backup.

Parameters
backup-dir The directory where the backup will be saved to.
backup-period The number of months to elapse between each backup.
backup-month-day The day of the month the backup will happen (between 1 and 31)
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-monthly-backup("/backup-dir", 1, 1, xs:time("09:45:00"))
  (: returns the monthly backup specification :)

  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.