Created
July 26, 2016 18:20
-
-
Save ableasdale/1ab92500379fe6c3c983fee001a365c5 to your computer and use it in GitHub Desktop.
MarkLogic: get the most recently completed incremental backup for a given database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "1.0-ml"; | |
declare namespace fs = "http://marklogic.com/xdmp/status/forest"; | |
declare variable $DATABASE as xs:string := xdmp:get-request-field("db") | |
max(xdmp:forest-status(xdmp:database-forests(xdmp:database($DATABASE)))/fs:last-incr-backup) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment