Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created July 26, 2016 18:15
Show Gist options
  • Save ableasdale/dbfbae8c5a12c5b09794ef19e4845889 to your computer and use it in GitHub Desktop.
Save ableasdale/dbfbae8c5a12c5b09794ef19e4845889 to your computer and use it in GitHub Desktop.
MarkLogic: get the status of all last incremental backups across all forests in a given database
xquery version "1.0-ml";
declare namespace fs = "http://marklogic.com/xdmp/status/forest";
xdmp:forest-status(xdmp:database-forests(xdmp:database("test")))/fs:last-incr-backup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment