Backups
Last updated
Last updated
Bitcart supports backing up it's data on one server and restoring it on another.
It is available via both UI and terminal.
To enter backups management page, go to profile->server management->backups
From there you can start a backup right away, it uses settings from this page to do it.
You can select which backup provider to use. All of them, except for local, require setting environment variables as you can see on the screen above.
Local provider just saves the backup on your current machine.
It is saved to /var/lib/docker/volumes/backup_datadir/_data/
Backups are named YYYYMMDD-HHMMSS-backup.tar.gz
SCP provider copies the file from your server to SCP_TARGET
and deletes backup locally
Required settings:
SCP_TARGET: for example username@ip/where/to/put/backups
S3 provider sends your file to amazon S3 and then deletes it locally
Required settings:
S3_BUCKET: in which bucket to save the backup
S3_PATH: where exactly in the bucket to save the backup
It is possible schedule backups to run automatically.
For backups to work, your settings must be valid (otherwise it will just fail every time), and you need to tick the scheduled backups checkbox. The timer will be saved even after server restarts.
Settings are saved automatically, and if you had existing schedule configured and change frequency/turn off and then on again backups, the timer will be reset
We assume that daily is exactly every day, weekly is every 7 days, monthly is every 30 days
Restoring backups is as easy as just uploading backup file to your instance!
Backup settings are configured via environment variables
If you need to run backup for scp provider, you would run:
Assuming that your file is named backup.tar.gz
, just run: