Changes

Jump to navigation Jump to search
458 bytes added ,  12:16, 17 June 2022
=Backups=
 
{{Announce|Introduced with Version 10:}} Support for general data ([[User Management|registered users]], [[Jobs Module#Services|scheduled services]] and [[Store Module|key-value stores]]).
All functions in this section except for {{Function||db:backups}} are [[#Updating Functions|updating functions]].
|-
| '''Summary'''
|Creates a backup of the database {{Code|$db}}. If no name is supplied, general data will be backed up. The following {{Code|$options}} are available:
* With {{Code|comment}}, a comment string can be attached to the backup.
* By setting {{Code|compress}} to false, the backup will be created faster, but it will take more space on disk.
|-
| '''Summary'''
|Drops all backups of the database with the specified {{Code|$name}}. If the name ends with a datetimestamp, only the specified backup file will be deleted. If no name is supplied, backups with general data are addressed.
|-
| '''Errors'''
|-
| '''Summary'''
|Restores the database with the specified {{Code|$name}}. The {{Code|$name}} may include the timestamp of the backup file. If no name is supplied, general data will be restored. If general data is restored, it will only be available after BaseX has been restarted.
|-
| '''Errors'''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu