Accessing and downloading backups
You can download full backups of the database, or use this Excel spreadsheet to download certain data tables from Zebrabase.
Zebrabase produces backups every 12 hours; at 12 AM and 12 PM UTC. To download the backups, it is necessary to obtain the permission download_backup. It is possible to access and download the backups by following these steps:
1. step
A new user account (type = machine) should be created for this action. Please, do not use your own credentials in order to keep your password protected.
2. step
The access token for Zebrabase API can be obtained by following the instructions in the manual: API/Basics. This action is straightforward when using Linux. For occasional access, a REST client or similar can be used.
3. step
A list of all available backups (JSON format) can be displayed by using: curl https://<prefix>.zebrabase.org/backup/ -L -H 'Authorization: Token <access-token>'
**example response:**
[
{ "name":"zb3_<prefix>-2021-09-22--13:40:10.tar.gz", "type":"file", "mtime":"Wed, 22 Sep 2021 11:40:11 GMT", "size":258300 },
{ "name":"zb3_<prefix>-2021-09-23--00:01:36.tar.gz", "type":"file", "mtime":"Wed, 22 Sep 2021 22:01:37 GMT", "size":258300 },
{ "name":"zb3_<prefix>-2021-09-23--12:01:34.tar.gz", "type":"file", "mtime":"Thu, 23 Sep 2021 10:01:36 GMT", "size":258303 }
]
4. step
In the last step, a file can be selected and downloaded using:
curl https://<prefix>.zebrabase.org/backup/zb3_<prefix>-2021-09-22--13:40:10.tar.gz -L -H 'Authorization: Token <access-token>' --output 'zb3_<prefix>-2021-09-22--13:40:10.tar.gz'