<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.forestRestore.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.forestRestore</api:function-name><api:suggest>xdmp.forestrestore</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>forestrestore</api:suggest><api:function-link mode="xquery" fullname="xdmp:forest-restore">/apidoc/8.0/xdmp:forest-restore.xml</api:function-link><api:function mode="javascript" name="forestRestore" type="builtin" lib="xdmp" category="AdminBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.forestRestore"><api:summary>
  Restores forest data files.
  Restarts the forest to complete the restoration.
</api:summary><api:params><api:param name="forestID" type="xs:unsignedLong"><api:param-description>
    A forest ID.
  </api:param-description><api:param-name>forestID</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="pathname" type="xs:string"><api:param-description>
    A forest backup pathname.
  </api:param-description><api:param-name>pathname</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>null</api:return><api:privilege>
  <p xmlns="http://www.w3.org/1999/xhtml"><code>http://marklogic.com/xdmp/privileges/xdmp-forest-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.forestRestore(xdmp.forest("My-Forest"),"/backups/Data/Forests/Documents");
</pre></api:example></api:function></api:function-page>