Versio.io Managed backup & restore
Backup
To backup a Versio.io server instance with all environment data the corresponding command must be executed:
# Backup all Versio.io content data
bash /opt/versio.io/install/utils/backup-database-content.sh
Command: Backup Versio.io instance includes all environment data
You can customize the backup folder via OS environment variable VERSIO_BACKUP_FOLDER
.
The backup script creates SQL dumps in the folder $VERSIO_BACKUP_FOLDER/sql-dump/<date>-<time>/
with file names versio.io-database-backup_<table>.sql.gz
.
To ensure data integrity, the Versio.io Server instance is stopped, the backup is performed and the Versio.io Server instance is restarted. This means that during this time the Versio.io Server is not available. The downtime depends on the data volume to be backed up and is displayed at the end of the backup execution.
It is recommended to run the backup continuously e.g. based on cron jobs:
# Crontab configuration for daily backup. Please configure it for user 'versio'!
40 0 * * * /opt/versio.io/install/utils/backup-database-content.sh
Configuration: Cronjob configuration for daily backup
Idea
Use Versio.io Batch Job Monitoring to monitor the daily backup process.
Restore
To restore all Versio.io Managed data you can execute the follwoing script. Please note - All data of the current Versio.io Managed Instance in the database will be overwritten!!!
# Restore all Versio.io content data
bash /opt/versio.io/install/utils/restore-database-content.sh <backup-date-time>
Configuration: Cronjob configuration for daily backup
Please note that a repocessing of the full-text search and topology detection reprocessing for each (!) environment must be performed when restoring backup data:
- see
Environment Settings - Full-text search - Reprocess environment
- see
Environment Settings - Topology detection - Reprocess environment
Info
It is strongly recommended that the restore process be tested at least every six months to ensure that you are able to take action in the event of a disaster.