Changes

Jump to navigation Jump to search
639 bytes added ,  19:09, 13 March 2014
no edit summary
* {{Code|db:drop-backup("DB-2014-03-13")}} drops all backups of the database {{Code|DB}} created on March 13th 2014.
* {{Code|db:drop-backup("DB-2014-03-13-17-36-44")}} drops the specific backup file {{Code|DB-2014-03-13-17-36-44.zip}} of the database {{Code|DB}}.
|}
 
==db:restore==
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|db:restore|$name as xs:string|empty-sequence()}}
|-
| '''Summary'''
|Restores the database with the specified {{Code|$name}}. The {{Code|$name}} may include the timestamp of the backup file.
|-
| '''Errors'''
|{{Error|BXDB0011|XQuery Errors#BaseX Errors}} Invalid database name.<br/>{{Error|BXDB0015|XQuery Errors#BaseX Errors}} No backup found.
|-
| '''Examples'''
|
* {{Code|db:restore("DB")}} restores the database {{Code|DB}}.
* {{Code|db:restore("DB-2014-03-13-18-05-45")}} restores the database {{Code|DB}} from the backup file with the given timestamp.
|}
administrator, Bureaucrats, editor, reviewer, Administrators
408

edits

Navigation menu