xdmp.databaseIncrementalBackupValidate( forestIDs as (Number|String)[], pathname as String, [include-replicas as Boolean?], [incremental-dir as String?], [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-incremental-backup-validate
http://marklogic.com/xdmp/privileges/xdmp-database-incremental-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.databaseIncrementalBackupValidate( xdmp.databaseForests(xdmp.database("Documents")), "/space/backups", false, "/space/backups/data2", true); => { "journalArchiveForestSelectionStatus": "okay", "forests": [ { "forestName": "Documents", "forestId": "18080252238750949856", "forestStatus": "okay", "directoryPath": "/space/backups", "directoryStatus": "non-existent", "action": "incremental-backup", "incrementalBackup": "true", "incrementalDirectoryPath": "/space/backups/data2", "fullBackupStatus": "okay", "journalArchiving": "true", "forestUpdate": "all", "forestUpdateStatus": "okay", "journalArchivePath": "/space", "journalArchivePathStatus": "okay", "journalArchiveLagLimit": "15", "journalArchiveLagLimitStatus": "okay" } , { "forestName": "test", "forestId": "15032873714652460194", "forestStatus": "okay", "directoryPath": "/space/backups", "directoryStatus": "non-existent", "action": "incremental-backup", "incrementalBackup": "true", "incrementalDirectoryPath": "/space/backups/data2", "fullBackupStatus": "okay", "journalArchiving": "true", "forestUpdate": "all", "forestUpdateStatus": "okay", "journalArchivePath": "/space", "journalArchivePathStatus": "okay", "journalArchiveLagLimit": "15", "journalArchiveLagLimitStatus": "okay" } ] }