![](/apidoc/images/printerFriendly.png)
MarkLogic Server 11.0 Product Documentation
xdmp.databaseBackupPurgexdmp.databaseBackupPurge(
dir as String,
keep-num-backups as Number,
[incremental-dir as String]
) as null
Summary
Purge old backups from a directory.
Parameters |
dir |
The directory under which to look for backups.
|
keep-num-backups |
The maximum number of old backups to keep.
|
incremental-dir |
The directory under which to look for incremental backups. Defaults to the backup data
directory.
|
Required Privileges
This operation requires at least one of the following privileges:
http://marklogic.com/xdmp/privileges/xdmp-database-backup-purge
http://marklogic.com/xdmp/privileges/xdmp-database-backup-purge/database/{id}
Example
xdmp.databaseBackupPurge("/my/backupdir/", 10, "/my/incrementaldir");
=>
()
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.