Changes

Jump to navigation Jump to search
298 bytes added ,  11:38, 13 May 2022
no edit summary
==db:create-backup==
{{Mark|Updated with Version 10:}} Support for commentsOptions argument added.
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|db:create-backup|$db as xs:string|empty-sequence()}}<br/>{{Func|db:create-backup|$db as xs:string, $comment options as xs:stringmap(*)|empty-sequence()}}
|-
| '''Summary'''
|Creates a backup of the database {{Code|$db}} . The following {{Code|$options}} are available:** with an optional {{Code|$comment}}, a comment string can be attached to the backup.** By setting {{Code|store}} to true, all files will be zipped without compression. The backup will be created faster, but it will take more space on disk.
|-
| '''Errors'''
| '''Examples'''
|
* {{Code|db:create-backup("'DB"', map { 'store': true() })}} creates a backup of the database {{Code|DB}}without compressing its entries.
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu