In BaseX, two internal representations exist for nodes.
* XML fragments are generated by XQuery node constructors.db:b
* Database nodes are:
** stored in a persistent database on disk;
|-
| '''Summary'''
|Returns an element sequence containing all available database backupswith timestamp, file size and comment.<br/>If a database {{Code|$db}} is specified, the sequence will be restricted to the backups matching this database.
|-
| '''Examples'''
|-
| width='120' | '''Signatures'''
|{{Func|db:create-backup|$db as xs:string|empty-sequence()}}<br/>{{Func|db:create-backup|$db as xs:string, $comment as xs:string|empty-sequence()}}
|-
| '''Summary'''
|Creates a backup of the database {{Code|$db}} with an optional {{Code|$comment}}.
|-
| '''Errors'''