Loading TOC...

xdmp.databaseRestoreStatus

xdmp.databaseRestoreStatus(
   $jobid as String
) as Object

Summary

Checks the status of the outstanding restore job with the specified job ID. Returns a database restore status Object.

Parameters
$jobid A restore job ID.

Required Privileges

http://marklogic.com/xdmp/privileges/xdmp-database-restore-status

Example

xdmp.databaseRestoreStatus(
  xdmp.databaseRestore(
    xdmp.databaseForests(
      xdmp.database("Documents")),
    "/space/backup"
    )
  );
=>
{
  "status": "in-progress", 
  "forests": [
    {
      "forestName": "Documents", 
      "forestId": "15810433344251984001", 
      "status": "in-progress", 
      "journalArchiving": false
    }
  ]
}

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy