<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.databaseRestore.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.databaseRestore</api:function-name><api:suggest>xdmp.databaserestore</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>databaserestore</api:suggest><api:function-link mode="xquery" fullname="xdmp:database-restore">/apidoc/8.0/xdmp:database-restore.xml</api:function-link><api:function mode="javascript" name="databaseRestore" type="builtin" lib="xdmp" category="AdminBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.databaseRestore"><api:summary>
  Starts an asynchronous restore of the specified list of forests from the
  backup data directory.  Returns a job ID that uniquely identifies the
  restore task.
</api:summary><api:params><api:param name="forestIDs" type="xs:unsignedLong*"><api:param-description>
    A sequence of forest IDs.
  </api:param-description><api:param-name>forestIDs</api:param-name><api:param-type>String[]</api:param-type></api:param><api:param name="pathname" type="xs:string"><api:param-description>
    A backup data directory pathname.
  </api:param-description><api:param-name>pathname</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="restoreToTime" type="xs:dateTime?" optional="true"><api:param-description>
    The date and time to restore the forest data to.
  </api:param-description><api:param-name>restoreToTime</api:param-name><api:param-type>Date?</api:param-type></api:param><api:param name="journal-archiving" type="xs:boolean?" optional="true"><api:param-description>
    Whether to restore from archived journals. Defaults to false.
  </api:param-description><api:param-name>journal-archiving</api:param-name><api:param-type>Boolean?</api:param-type></api:param><api:param name="journal-archive-path" type="xs:string?" optional="true"><api:param-description>
    Path to where archived journals are stored. Defaults to the backup data
    directory.
  </api:param-description><api:param-name>journal-archive-path</api:param-name><api:param-type>String?</api:param-type></api:param><api:param name="incremental-backup" type="xs:boolean?" optional="true"><api:param-description>
    Whether to restore using incremental backups. Defaults to false.
  </api:param-description><api:param-name>incremental-backup</api:param-name><api:param-type>Boolean?</api:param-type></api:param><api:param name="incremental-backup-path" type="xs:string?" optional="true"><api:param-description>
    Path to where incremental backups are stored. Defaults to the backup data
    directory.
  </api:param-description><api:param-name>incremental-backup-path</api:param-name><api:param-type>String?</api:param-type></api:param></api:params><api:return>String</api:return><api:privilege>
  <p xmlns="http://www.w3.org/1999/xhtml"><code>http://marklogic.com/xdmp/privileges/xdmp-database-restore</code></p>
</api:privilege><api:usage>
  <p xmlns="http://www.w3.org/1999/xhtml">Reindexing will stop while a backup or restore is in progress.</p>
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.databaseRestore([11183608861595735720,898513504988507762],
    "/backups/Data")
=&gt; 33030877979801813489
</pre>
</api:example></api:function></api:function-page>