Skip to main content

Automate to Automate HA

[edit on GitHub]

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.
  1. 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.

  1. Create Bundle using this command:
tar -cvf backup.tar.gz path/to/backup/<backup_id>/ /path/to/backup/automatebackup-elasticsearch/ /path/to/backup/.tmp/
  1. Transfer this tar bundle to one of the Chef Automate Nodes.

  2. Transfer .abb file to all the FrontEnd Nodes (both Chef Automate and Chef Infra Server).

  3. Login to that Chef Automate Node with ssh.

  4. Unzip the bundle using:

tar -xf backup.tar.gz -C /mnt/automate_backups
  1. 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
  1. 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?

×









Search Results