Loading TOC...

MarkLogic Server 11.0 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 :)


  

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