Backup and Restore¶
This page explains the backup and restore operations of Anaconda Enterprise.
Anaconda Enterprise can back up and restore the following key components of the platform:
- platform state and configuration
- platform storage (database, object storage, and project version control)
The backups are produced in the form of a pair of gzip-compressed tar files,
and the restore operation requires a matching set of backup files to proceed.
NOTE: All backup and restore operations are executed on the head node, in the
Anaconda Enterprise environment.
To run all the below operations, you must copy the backup.sh and restore.sh
scripts from the installer tarball to the Anaconda Enterprise environment:
sudo cp backup.sh restore.sh /opt/anaconda
Then enter that environment to run the scripts:
sudo gravity enter
Backup¶
The backup script will stop the system.
Ensure all users have logged out.
In the terminal, run the script:
cd /opt/anaconda/
bash backup.sh
For help, run bash backup.sh -h.
This will produce a pair of backup files, in the same directory as the script was run:
ae5-data-backup-{timestamp}.tar.gzae5-state-backup-{timestamp}.tar.gz
In both cases {{timestamp}} is the time when the backup ran.
NOTE: Be sure to test and verify your backups. Store backups in multiple redundant locations for maximum safety.
Restore¶
In the terminal, run:
cd /opt/anaconda/
bash restore.sh data-backup-file state-backup-file
NOTE: Replace data-backup-file with the path to the data backup file generated by running the Anaconda Enterprise backup script, and replace state-backup-file with the path to the state backup file generated by running the Anaconda Enterprise backup script.
For help, run bash restore.sh -h.