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

admin:forest-minutely-backup(
   $backup-dir as xs:string,
   $backup-period as xs:positiveInteger
) as element(as:forest-backup)

Summary

This function constructs a scheduled forest backup on a number-of-minutes basis.

Parameters
backup-dir The directory to save the backup.
backup-period The number of minutes to elapse between each backup

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-minutely-backup("/backup-dir", 45)

  (: returns the minutely forest backup specification. :)
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy