MarkLogic Server 11.0 Product Documentation
xdmp:forest-restore

xdmp:forest-restore(
   $forestID as xs:unsignedLong,
   $pathname as xs:string
) as empty-sequence()

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:forest-restore(xdmp:forest("My-Forest"),"/backups/Data/Forests/Documents")
Powered by MarkLogic Server | Terms of Use | Privacy Policy