...
As of now, there is no simple way to click and roll back rollback the change to the backup. But it can be achieved in the following ways with simple customization.
Choose either option 1 or 2, don’t use both.
Customize deploy workflow to deploy from the backup artifact repository. Simply copy the backup artifact to the artifacts folder before deploying.
Backups are available to the endpoint during a follow-up deployment. They are delivered in the $FD_WORKING_DIR/backups folder.
Add an input to your deploy workflow like Rollback as a boolean
Add an if condition before the deployment step. If Rollback is true, then copy the backup artifact ($FD_WORKING_DIR/backups) to the artifacts folder ($FD_ARTIFACTS_DIR) (use shell or file step for this)
Download the files from the Backups section of artifacts, and commit them to the SCM repository. Build and deploy as normal.
...