xdmp.databaseBackupValidate( forestIDs as (Number|String)[], pathname as String, [include-replicas as Boolean?], [journal-archiving as Boolean?], [journal-archive-path as String?], [lag-limit as (Number|String)?] ) as Object
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:
forestName
forestId
forestStatus
directoryPath
directoryStatus
backupTime
action
restoreToTime
journalArchiving
journalArchivePath
journalArchivePathStatus
journalsStatus
forestUpdate
forestUpdateStatus
journalArchiveLagLimit
journalArchiveLagLimitStatus
mergeTimestampStatus
incrementalBackup
incrementalBackupPath
incrementalBackupPathStatus
fullBackupStatus
backupForests
This is an object with the following properties:
backupForest
This is an object with the following properties:
forestName
directoryStatus
xdmp.databaseBackupValidate(xdmp.databaseForests(xdmp.database("Documents")), "/space/backups", false, true); => { "journalArchiveForestSelectionStatus": "okay", "forests": [ { "forestName": "Documents", "forestId": "18080252238750949856", "forestStatus": "okay", "directoryPath": "/space/backups", "directoryStatus": "okay", "action": "backup", "incrementalBackup": "false", "journalArchiving": "true", "forestUpdate": "all", "forestUpdateStatus": "okay", "journalArchivePath": "/space/backups", "journalArchivePathStatus": "okay", "journalArchiveLagLimit": "15", "journalArchiveLagLimitStatus": "okay" } , { "forestName": "test", "forestId": "15032873714652460194", "forestStatus": "okay", "directoryPath": "/space/backups", "directoryStatus": "okay", "action": "backup", "incrementalBackup": "false", "journalArchiving": "true", "forestUpdate": "all", "forestUpdateStatus": "okay", "journalArchivePath": "/space/backups", "journalArchivePathStatus": "okay", "journalArchiveLagLimit": "15", "journalArchiveLagLimitStatus": "okay" } ] }