Restore from backup
When necessary, you can use a backup file to roll back to a previous version of your Continuous Delivery (CD) set-up without changing the underlying infrastructure.
To restore from a backup:
- Generate a list of existing backups to determine which backup file you wish to
restore. From the root of your Continuous Delivery (CD) Bolt project run: Copy
bolt plan run cd4peadm::list_backups
- Confirm your Continuous Delivery (CD) version matches the version of
the desired backup. If the version does not match, revert or upgrade the module
to the same version as the backup. From the root of your Continuous Delivery (CD) Bolt project run: Copy
bolt module show puppetlabs/cd4peadm
- Restore from the backup file. From the root of your Continuous Delivery (CD) Bolt project run: Copy
bolt plan run cd4peadm::restore backup=<name>
- If database passwords have been updated since the backup was created you must
update the installation with the new passwords. From the root of your
Continuous Delivery (CD) Bolt project run: Copy
bolt plan run cd4peadm::apply_configuration