Backs up forest data files.
|$forestID||A forest ID.|
|$pathname||A forest backup pathname. If the directory does not exist, it is created when you run this function. The filesystem permissions must be such that the directory is writable by the operating system user under which MarkLogic Server is running. The directory cannot be the MarkLogic Server install directory or the MarkLogic Server data directory.|
Reindexing will stop while a backup or restore is in progress.
xdmp.forestBackup(xdmp.forest("Documents"),"/space/backups"); => ()