A module for access to database backups available on the server file system
backups:list($directory as xs:string) as node()
Returns an XML fragment listing all eXist backups found in a specified backup directory.
$directory | The path to the directory to show the list of backups on. |
backups:retrieve($directory as xs:string, $name as xs:string) as item()
Retrieves a zipped backup archive, $name, and directly streams it to the HTTP response. For security reasons, the function will only read .zip files in the specified directory, $directory.
$directory | The path to the directory where the backup file is located. |
$name | The name of the file to retrieve. |