<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.forestBackupStatus.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.forestBackupStatus</api:function-name><api:suggest>xdmp.forestbackupstatus</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>forestbackupstatus</api:suggest><api:function-link mode="xquery" fullname="xdmp:forest-backup-status">/apidoc/8.0/xdmp:forest-backup-status.xml</api:function-link><api:function mode="javascript" name="forestBackupStatus" type="builtin" lib="xdmp" category="AdminBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.forestBackupStatus"><api:summary>
  Checks the status of the specified forests for any outstanding backup jobs.  
  Returns the specified forests portion a database backup status 
  <span class="javascript" xmlns="http://www.w3.org/1999/xhtml"> as a JSON</span> node.
</api:summary><api:params><api:param name="forestid" type="xs:unsignedLong*"><api:param-description>
    One or more forest IDs.
  </api:param-description><api:param-name>forestid</api:param-name><api:param-type>String[]</api:param-type></api:param></api:params><api:return class="javascript">ObjectNode*</api:return><api:privilege>
  <p xmlns="http://www.w3.org/1999/xhtml"><code>http://marklogic.com/xdmp/privileges/xdmp-database-backup-status</code></p>
</api:privilege><api:usage schema="job-status.xsd" element-name="job-status" camel-case="true"> <api:schema-info><api:element><api:element-name>forest</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
	      The forest being backed up.  There is one forest element for each
	      forest in the backup.
      </xs:documentation></api:element-description><api:element><api:element-name>forestName</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
  	The name of the forest.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>forestId</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
  	The forest ID.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>status</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
	      The status of the forest backup.  The status is one of: "queued", 
	      "in-progress", "failed", "canceled", completed", or "unknown".
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>restoreToTime</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        The date and time this backup was created.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>journalArchiving</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
	Is journal archiving enabled for a full backup?
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>journalArchivePath</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
	Path to the associated journal archive location.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>safeRestoreToTime</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        The date and time this backup was created.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>journalArchiveLagLimit</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
  	Number of seconds the archived journal can lag the active journal.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>hostName</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Hostname where this forest is backup.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>backupPath</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Path to the backup location.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>incrementalBackupPath</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Path to the backup location.
      </xs:documentation></api:element-description></api:element></api:element><api:element><api:element-name>jobId</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        The job ID.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>status</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
	      The status of the forest backup.  The status is one of: "queued", 
	      "in-progress", "failed", "canceled", completed", or "unknown".
      </xs:documentation></api:element-description></api:element></api:schema-info></api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.forestBackupStatus(xdmp.forest("My-Forest"));
=&gt;
{
  "jobId":"1261339155818839957",
  "forests":
  {
   "forestName":"bill",
   "forestId":"7201957734358937355",
   "status":"completed",
   "incrementalBackup":"false",
   "journalArchiving":"false"
   }
}
</pre>
</api:example></api:function></api:function-page>