MarkLogic Server 11.0 Product Documentation
xdmp.forestRestore

xdmp.forestRestore(
   forestID as (Number|String),
   pathname as String
) as null

Summary

Restores forest data files. Restarts the forest to complete the restoration.

Parameters
forestID A forest ID.
pathname A forest backup pathname.

Required Privileges

This operation requires at least one of the following privileges:

http://marklogic.com/xdmp/privileges/xdmp-forest-restore

http://marklogic.com/xdmp/privileges/xdmp-forest-restore/forest/{id}

http://marklogic.com/xdmp/privileges/xdmp-forest-restore/database/{id}

Usage Notes

Reindexing will stop while a backup or restore is in progress.

Example

xdmp.forestRestore(xdmp.forest("My-Forest"),"/backups/Data/Forests/Documents");
Powered by MarkLogic Server | Terms of Use | Privacy Policy