|
|
xdmp:database-backup(
|
|
$forestIDs as unsignedLong*,
|
|
$pathname as xs:string
|
| ) as xs:unsignedLong |
|
 |
Summary:
Starts an asynchronous backup of the specified list of forests to the
backup data directory. Returns a job ID that uniquely identifies the
backup task.
|
Parameters:
$forestIDs
:
A sequence of forest IDs.
|
$pathname
:
A backup data directory pathname. The directory must exist and be
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.
|
|
Required Privilege:
http://marklogic.com/xdmp/privileges/xdmp-database-backup
|
Usage Notes:
You cannot restore to a read-only forest.
Reindexing will stop while a backup or restore is in progress.
The backup directory must exist on each host that has a forest
specified in the database backup call (that is, the d-nodes in which the
forests being backed up are hosted).
|
Example:
xdmp:database-backup((11183608861595735720,898513504988507762),
"/backups/Data")
=> 33030877979801813489
|
Example:
xdmp:database-backup(xdmp:database-forests(xdmp:database("Documents")),
"/backups/Data")
=> 437302857479804813287
|
|
|