Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created July 26, 2016 18:08
Show Gist options
  • Save ableasdale/6bd5a606e389515713fb43323ad5a55e to your computer and use it in GitHub Desktop.
Save ableasdale/6bd5a606e389515713fb43323ad5a55e to your computer and use it in GitHub Desktop.
Get the backup status from 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-backup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment