Loading TOC...

MarkLogic 12 EA 1 Product Documentation
xdmp:database-journal-archive-purge

xdmp:database-journal-archive-purge(
   $dir as xs:string,
   [$incremental-dir as xs:string],
   [$journal-archive-path as xs:string]
) as empty-sequence()

Summary

Purge journal archive before last incremental backup from a directory.

Parameters
dir The directory under which to look for backups.
incremental-dir The directory under which to look for incremental backups. Defaults to the backup data directory.
journal-archive-path The directory under which to look for journal archive.

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:database-journal-archive-purge("/my/backupdir/", "/my/incrementaldir")
=>
()

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.