MarkLogic 12 EA 1 Product Documentation
admin:forest-hourly-backup

admin:forest-hourly-backup(
   $backup-dir as xs:string,
   $backup-period as xs:positiveInteger,
   $start-minute as xs:nonNegativeInteger
) as element(as:forest-backup)

Summary

This function constructs a hourly scheduled forest backup specification.

Parameters
backup-dir The directory to save the backup.
backup-period The number of hours to elapse between each backup
start-minute The number of minutes after the hour to start the backup. Note that this setting does not add to the backup period value.

Example


  xquery version "1.0-ml";

  import module namespace admin = "http://marklogic.com/xdmp/admin"
      at "/MarkLogic/admin.xqy";

  let $config := admin:get-configuration()
  return
    admin:forest-hourly-backup("/backup-dir", 2, 30)

  (: returns the hourly forest backup specification. For example, if the
     current time is 2:15pm, the backup will run at 4:30pm, 6:30pm, 8:30pm,
     and so on. :)
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy