<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.databaseRestoreStatus.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.databaseRestoreStatus</api:function-name><api:suggest>xdmp.databaserestorestatus</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>databaserestorestatus</api:suggest><api:function-link mode="xquery" fullname="xdmp:database-restore-status">/apidoc/8.0/xdmp:database-restore-status.xml</api:function-link><api:function mode="javascript" name="databaseRestoreStatus" type="builtin" lib="xdmp" category="AdminBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.databaseRestoreStatus"><api:summary>
  Checks the status of the outstanding restore job with the specified
  job ID.  Returns a database restore status 
<span class="javascript" xmlns="http://www.w3.org/1999/xhtml">Object</span>.
</api:summary><api:params><api:param name="jobid" type="xs:unsignedLong"><api:param-description>
    A restore job ID.
  </api:param-description><api:param-name>jobid</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return class="javascript">Object</api:return><api:privilege>
  <p xmlns="http://www.w3.org/1999/xhtml"><code>http://marklogic.com/xdmp/privileges/xdmp-database-restore-status</code></p>
</api:privilege><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.databaseRestoreStatus(
  xdmp.databaseRestore(
    xdmp.databaseForests(
      xdmp.database("Documents")),
    "/space/backup"
    )
  );
=&gt;
{
  "status": "in-progress", 
  "forests": [
    {
      "forestName": "Documents", 
      "forestId": "15810433344251984001", 
      "status": "in-progress", 
      "journalArchiving": false
    }
  ]
}
</pre>
</api:example></api:function></api:function-page>