Backup and restore
The following documentation only applies to installations running both Postgres and Elasticsearch on a single server. If you have an alternative installation please contact us at firstname.lastname@example.org for assistance with your backups.
Please ensure you take backups at regular intervals.
To backup Postgres and Elasticsearch to a single archive, run the following:
This will generate a file such as:
/tmp/gb-private-server-backup-2019-08-05_14-59-56.tar.gz. We recommend storing your backups in a different physical location to the server or on a cloud storage service such as AWS S3.
To restore a backup, run the following command. You’ll be prompted for confirmation. Please be careful with this, all of your data will be overwritten from the backup.
./gbserver.sh restore <backup file>