xdmp:database-backup-validate( $forestIDs as xs:unsignedLong*, $pathname as xs:string, [$include-replicas as xs:boolean?], [$journal-archiving as xs:boolean?], [$journal-archive-path as xs:string?], [$lag-limit as xs:unsignedLong?] ) as element()
Validates that the specified list of forests can be backed up to the backup data directory. Optionally verifies that the list of forests can enable journal archiving to the journal archive directory with the specified lag limit. Returns a database backup set node.
http://marklogic.com/xdmp/privileges/xdmp-database-backup-validate
http://marklogic.com/xdmp/privileges/xdmp-database-backup-validate/database/{id}
The structure of the data returned is as follows:
forest-name
forest-id
forest-status
directory-path
directory-status
backup-time
action
restore-to-time
journal-archiving
journal-archive-path
journal-archive-path-status
journals-status
forest-update
forest-update-status
journal-archive-lag-limit
journal-archive-lag-limit-status
merge-timestamp-status
incremental-backup
incremental-backup-path
incremental-backup-path-status
full-backup-status
backup-forests
This is a complex element with the following element children:
backup-forest
This is a complex element with the following element children:
forest-name
directory-status
xdmp:database-backup-validate((11183608861595735720,898513504988507762), "/backups/Data", fn:false(), fn:true()) => <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:forest> <bp:forest-name>Documents</bp:forest-name> <bp:forest-id>9157142760003704384</bp:forest-id> <bp:forest-status>okay</bp:forest-status> <bp:directory-path>/tmp</bp:directory-path> <bp:directory-status>okay</bp:directory-status> <bp:action>backup</bp:action> <bp:journal-archiving>true</bp:journal-archiving> <bp:journal-archive-path>/tmp</bp:journal-archive-path> <bp:journal-archive-path-status>okay</bp:journal-archive-path-status> <bp:journal-archive-lag-limit>15</bp:journal-archive-lag-limit> <bp:journal-archive-lag-limit-status>okay</bp:journal-archive-lag-limit-status> </bp:forest> </bp:backup-plan>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.