Loading TOC...

MarkLogic 10 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");

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