
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:
forestNameforestIdforestStatusdirectoryPathdirectoryStatusbackupTimeactionrestoreToTimejournalArchivingjournalArchivePathjournalArchivePathStatusjournalsStatusforestUpdateforestUpdateStatusjournalArchiveLagLimitjournalArchiveLagLimitStatusmergeTimestampStatusincrementalBackupincrementalBackupPathincrementalBackupPathStatusfullBackupStatusbackupForestsThis is an object with the following properties:
backupForestThis is an object with the following properties:
forestNamedirectoryStatus
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"
} ]
}
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.