Loading TOC...

MarkLogic 12 EA 2 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")

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.