MarkLogic 12 EA 1 Product Documentation
admin:forest-one-time-backup

admin:forest-one-time-backup(
   $backup-dir as xs:string,
   $start as xs:dateTime
) as element(as:forest-backup)

Summary

This function constructs a one-time backup.

Parameters
backup-dir The directory where the backup will be saved to.
start The starting dateTime of the scheduled backup.

Example


  xquery version "1.0-ml";

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

  admin:forest-one-time-backup("/backup-dir",
        xs:dateTime("2008-02-14T09:45:00"))
  (: returns the one-time backup :)


  
Powered by MarkLogic Server | Terms of Use | Privacy Policy