Occasionally, you may want to restore some of your environment configuration to a previous version. You may want to restore these changes when some issue occurs in production and you want to go back to the last working version, after refreshing a sandbox, or any other reason.
This flow allows you to compare your environment’s current state with a previous version and manually select elements you would like to restore.
To revert Salto deployments, please refer to “Reverting deployments”
To restore an environment's configuration to a previous version, go to the Change Log tab. Here, you'll see a list of all versions done in the Environment.
To restore the environment's configuration to a specific version, hover on the row of the Fetch or Deployment that changed the environment and click the Restore button:
A "Restore" deployment will then be created. The deployment starts with a comparison of the current environment configuration, and the historic configuration from the version you chose; you can now select specific changes you want to restore.
💡 A version is created after every successful fetch and deployment that represents changes in the environment.
To lean more about automating and controlling your versions frequency go to "Fetching Your Configuration Data".
If you cannot find the changes you would like to restore, you can modify the compared version of the environment by clicking on the version badge and choosing a different version.
Important Notice on Restoring with Regenerated Salto IDs
When fetching an environment with the option to regenerate Salto IDs enabled, be mindful that attempting to restore to a version prior to this fetch may result in elements with newly generated Salto IDs not being restored. This limitation is due to the absence of these IDs in earlier versions, which can prevent a direct match during the restoration process. Please plan your restoration activities accordingly to make sure you recover the environment's configuration.
After selecting the changes you wish to deploy, click "Preview Deployment" to continue. You can read more about the rest of the deploy process, in the "Previewing and finalizing your deployment" help article.