Loading TOC...

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

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