# Backup & Rollback

The **Enable Rollback** option is one of the key **Deployment Actions** that can be configured during the deployment process. When enabled, this option creates a **backup of the current deployment version**, allowing you to **rollback changes** in case of deployment failures or post-deployment issues.

### **Key Points:**

* Rollback is supported for **CPI artifacts** deployed both to **design time** and **runtime**.
* To use rollback during a release pipeline, you must **enable rollback while creating the pipeline**.
* During pipeline execution, you can initiate rollback by clicking the **Rollback** option in the deployment screen.
* Detailed deployment information, including rollback status, is available in the associated **deployment task**.
* Rollback logs in the **Pipeline Activity** section appear only when a rollback is triggered, reducing clutter in the pipeline history.

### **How to Enable Rollback:**

1. While adding a **Deployment Task**, you will see an option for **Enable Rollback**.
2. **Select the checkbox** next to this option.
3. Click **Save** to confirm the changes.\\

<figure><img src="https://1890383800-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDWyxe6hm5vqosFaByVgs%2Fuploads%2FOEzLWDDQEpqDDQPdeAbM%2Fimage.png?alt=media&#x26;token=7f09b17b-cba9-4691-9424-67a087cc512c" alt=""><figcaption></figcaption></figure>

4. You can view the Release Pipeline execution status from User Stories screen by navigating to the Pipeline Activity as shown below:\\

<figure><img src="https://1890383800-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDWyxe6hm5vqosFaByVgs%2Fuploads%2F2MKVA0RraBaDB1X0Xaj4%2Fimage.png?alt=media&#x26;token=c737a267-8ae2-4b64-ba71-e25a06af8021" alt=""><figcaption></figcaption></figure>

5. Click on the **Pipeline Activity** option. You can find the Rollback option under **Deployment section**.&#x20;
6. At any point of time i.e., during or after the deployment done by the execution of the Release Pipeline, you can rollback to previous version by clicking the Rollback option available.&#x20;

<figure><img src="https://1890383800-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDWyxe6hm5vqosFaByVgs%2Fuploads%2F2MmVBdX2G7gw4HijgupH%2Fimage.png?alt=media&#x26;token=526cec72-531e-4f29-b608-0e30b5d39fe1" alt=""><figcaption></figcaption></figure>

7. To rollback to the previous version, click on **Rollback** and in the confirmation pop-up that appears, click **Yes**. Rollback process starts.

<figure><img src="https://1890383800-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDWyxe6hm5vqosFaByVgs%2Fuploads%2FrZGaOt4WqdrF9hxbCN29%2Fimage.png?alt=media&#x26;token=e3be6549-5e78-4fe0-ac94-3a3072597968" alt=""><figcaption></figcaption></figure>

### **Rollback Logs**

* **Rollback Logs** are generated for **CPI artifacts** deployed to both **design time** and **runtime**.
* To rollback a build, click **Rollback** on the **Pipeline Activity status page**.
* Once rollback is triggered, the **rollback status and details** will be visible in the **deployment logs**, providing transparency into the rollback process and outcomes.

<figure><img src="https://1890383800-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDWyxe6hm5vqosFaByVgs%2Fuploads%2Ffl8ziPL8F3XOAXCmfww8%2Fimage.png?alt=media&#x26;token=23040f43-c075-488e-95d5-3137c1b90064" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note :** Rollback logs in the Pipeline Activity section are now dynamically displayed only when a rollback is actually triggered.
{% endhint %}
