Backup and restore of Velobox database

This example shows how to use the backup/restore feature for the Velobox' client database. (See HTML source for details.)

Backup

Uses a simple ancor (<A ...> ... </A>) with href="/db_buprest". For storing, a filename with the current date will be proposed.

[Backup Velobox data]

Restore

Uses a multipart/form-data form with a file input tag. If the Velobox cannot restore the data, the HTTP error "400 Bad Request" will be returned.
Hint: The Velobox is unable to handle multiple parts or a part other than type="file".

Classic multipart form

(May not fit very well in a web application.)

VeloboxBup ...:

XMLHttpRequest multipart form

VeloboxBup ...: