Automate to Automate HA
Upgrading with FileSystem Backup
To upgrade the file system backup, the versions of Chef Automate and Chef Automate HA should be same.
Note
Chef Automate HA is only available in version 4.x.
- Create a Backup of Chef Automate using the following command:
chef-automate backup create
chef-automate bootstrap bundle create bootstrap.abb
The above command saves the backup to the /var/opt/chef-automate/backup
location unless you specify the location in config.toml
.
- Create Bundle using this command:
tar -cvf backup.tar.gz path/to/backup/<backup_id>/ /path/to/backup/automatebackup-elasticsearch/ /path/to/backup/.tmp/
Transfer this tar bundle to one of the Chef Automate Nodes.
Transfer
.abb
file to all the FrontEnd Nodes (both Chef Automate and Chef Infra Server).Login to that Chef Automate Node with ssh.
Unzip the bundle using:
tar -xf backup.tar.gz -C /mnt/automate_backups
- Restore using the following command
automate_version_number=4.0.91 ## Change this based on the version of Chef Automate running.
chef-automate backup restore /mnt/automate_backups/backups/<backup_id>/ --patch-config /etc/chef-automate/config.toml --airgap-bundle /var/tmp/frontend-${automate_version_number}.aib --skip-preflight
- Unpack the
.abb
file on all the Frontend nodes:
Login to Each Frontend Node and then run after copying the .abb
file.
chef-automate bootstrap bundle unpack bootstrap.abb
Was this page helpful?