xdmp:database-restore-validate( $forestIDs as xs:unsignedLong*, $pathname as xs:string, [$restoreToTime as xs:dateTime?], [$include-replicas as xs:boolean?], [$journal-archiving as xs:boolean?], [$journal-archive-path as xs:string?], [$incremental-backup as xs:boolean?], [$incremental-backup-path as xs:string?] ) as element()
Validates that the specified list of forests can be restored from the backup data directory. Returns a database restore set node.
http://marklogic.com/xdmp/privileges/xdmp-database-restore-validate
xdmp:database-restore-validate((11183608861595735720,898513504988507762), "/backups/Data") => ..database restore set node <bp:backup-plan xsi:schemaLocation="http://marklogic.com/xdmp/backup-plan backup-plan.xsd" xmlns:bp="http://marklogic.com/xdmp/backup-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <bp:taginfo> <bp:version>8.0-20141030</bp:version> <bp:jobid>10780760300302561575</bp:jobid> <bp:startdate>2014-10-31T14:52:11</bp:startdate> <bp:enddate>2014-10-31T14:52:19</bp:enddate> </bp:taginfo> <bp:forest> <bp:forest-name>bill</bp:forest-name> <bp:forest-id>7201957734358937355</bp:forest-id> <bp:forest-status>okay</bp:forest-status> <bp:directory-path>/space/Backups/20141031-1452115365630</bp:directory-path> <bp:directory-status>okay</bp:directory-status> <bp:action>restore</bp:action> <bp:incremental-backup>false</bp:incremental-backup> <bp:journal-archiving>false</bp:journal-archiving> </bp:forest> <bp:database> <bp:database-name>bill</bp:database-name> <bp:database-id>16618783434388932604</bp:database-id> <bp:assignment-policy-name>bucket</bp:assignment-policy-name> <bp:database-forests> <bp:database-forest> <bp:forest-name>bill</bp:forest-name> <bp:forest-id>7201957734358937355</bp:forest-id> </bp:database-forest> </bp:database-forests> </bp:database> </bp:backup-plan>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.