Rollback

Updated 5 months ago
by
Iván Minaya

By following the Copado Best Practices in your release management process, you will be able to identify issues with your metadata changes as they are being deployed from one environment to the next. While enforcing quality gates, you will be able to troubleshoot the issues before the changes arrive in Production. Hence, the probability of errors in Production is minimal or non-existent.

However, if you would like to perform a rollback of all or some metadata changes after a deployment, the process to do so consists of the following two steps:

Before Deployment:

Backup the Destination Org in your Git Repository with a Git Snapshot, in case you don't have this already scheduled to backup automatically on a daily or weekly basis.

After Deployment (and if you would like to rollback changes):

Create a Snapshot Difference to compare the Backup commit against the Destination Org. Once the Difference Calculation is finished, select the files that you would like to deploy to the Destination Org. Click "Create Deployment" and then follow the steps in order to deploy the metadata components from the Git backup.

If you're working with Copado Branch Management, commit the files that you deployed, from the Backup commit to the Destination Org, so that the Git branch linked to the Destination Org is also updated.