Backups
Create Backups
The product is paused while a backup is being created. Do not create backups with sudo
.
Before executing a backup.sh
script, open the directory that contains the docker-compose.yml
file with the current system version settings.
To create a backup, run the following commands:
chmod +x scripts/backup.sh
scripts/backup.sh docker-compose.yml prod
The system starts when the process is complete. A backup archive is created in the working directory. The format of the archive filename is backup_
{day}_
{month}_{year}.tar
. For example, backup_10_11_2021.tar
.
Note
The script described above does not apply to external databases (in case you configure and use them). For external databases, configure the backup process in a separate step (using standard PostgreSQL tools).
Restore the System from a Backup
While restoring from a backup, the product is suspended.
Before executing a restore.sh script, open the directory that contains docker-compose.yml
and .env
files with the current system version settings.
To restore from a backup, do the following:
chmod +x scripts/restore.sh
scripts/restore.sh docker-compose.yml prod backup_21_05_2019.tar
The system starts when the process is complete.
Note
If you move TestGear to a different server, make sure to install the product on a new server with default settings and then restore data from a backup.
In order to provide better compatibility, install the same version of TestGear that is contained in a backup of the initial version.