A rollback plan says how you will undo a release if it goes wrong: what triggers the rollback, who decides, the exact steps for code, configuration and data, and how you check that it worked. Write one before any release that changes a database, an API other teams depend on, or anything customers would struggle to recover from, because the time to work out a rollback is before you need it. This rollback plan template is free Markdown, ready to keep next to your runbook.
What's in this template
- Scope and owner: what you're releasing, the version you'd return to, and who owns the rollback.
- Rollback triggers as numbers, and one decision maker who can act alone.
- The steps for code, configuration and the database, from the cheapest option to the last resort.
- Verification, communication and the after-action review.
Rollback plan
Scope and owner
| Item | Details |
|---|---|
| Release being deployed | ____ (version ____) |
| Roll back to | ____ (last version known to work) |
| Environments covered | ____ |
| Rollback owner | ____ |
| Decision maker | ____ (backup: ____) |
| Backup taken | ____ (where, and when) |
| Point of no return | ____ (for example: once the clean-up migration has run; none if every change is reversible) |
| Rollback rehearsed on Staging | ____ (date) |
Rollback triggers
Roll back if any of these happens after the deployment:
| Signal | Trigger | For how long | Where you see it |
|---|---|---|---|
| Error rate | Above ____% (normal: ____%) | 5 minutes | ____ |
| p95 response time | Above ____ ms (normal: ____ ms) | 10 minutes | ____ |
| Core journey | Sign-in, checkout or ____ fails | Once | Smoke tests |
| Data | Any wrong, missing or duplicated data | Once | Checks, reports |
| Customer reports | ____ reports of the same problem | 30 minutes | Support queue |
| Fixing forward | No tested fix within ____ minutes | Once | Release channel |
Decision
- The decision maker can order a rollback alone, without a meeting.
- If a trigger is hit, roll back first and investigate afterwards.
- Fixing forward instead needs all three: the cause is known, the fix is small and reviewed, and it ships faster than the rollback. The decision maker says so in the release channel.
Rollback steps
1. Announce
- "Rolling back ____ to ____" posted in ____, with the trigger that was hit
- Maintenance banner or status page updated, if customers are affected
2. Code
- Version ____ re-deployed through the normal pipeline, not a hand-built copy
- Caches and the CDN purged, if the release changed static files
- Background jobs started by the new version stopped or drained
3. Configuration
- Config values and environment variables changed for this release reverted: ____
- Infrastructure changes the old version can't run with reverted: ____
4. Database
- If the migrations only added things, the schema stays as it is: the old version runs on it
- If a migration must be reversed: the reviewed down-migration ____ run (rehearsed on Staging on ____)
- Last resort only: the backup from ____ restored, with the decision maker's sign-off first. Everything written since the backup is lost and must be reconciled
Verification
- Production reports version ____
- Smoke tests pass: sign-in, ____, ____
- Error rate and response times back to normal
- Background jobs running and queues draining
- Data written while the bad release was live checked and repaired
Communication
| Audience | Message | Channel | Owner |
|---|---|---|---|
| Release team | Rolling back, then rolled back and verified | ____ | Rollback owner |
| Support | What customers may have seen, and what to tell them | ____ | Support lead |
| Stakeholders | What happened, the impact, next steps | Release manager | |
| Customers, if affected | What happened, and that it's resolved | Status page, email | Product owner |
After-action
- Rollback recorded: date, environment, version, outcome
- Release status updated, and published release notes corrected if they announced the rolled-back changes
- Review held within ____ working days: trigger, time to detect, time to restore, cause
- Fix planned and the release rescheduled, with a new readiness check
- This plan updated with anything that didn't work
Show the Markdown to copy
# Rollback plan
## Scope and owner
| Item | Details |
|---|---|
| Release being deployed | ____ (version ____) |
| Roll back to | ____ (last version known to work) |
| Environments covered | ____ |
| Rollback owner | ____ |
| Decision maker | ____ (backup: ____) |
| Backup taken | ____ (where, and when) |
| Point of no return | ____ (for example: once the clean-up migration has run; none if every change is reversible) |
| Rollback rehearsed on Staging | ____ (date) |
## Rollback triggers
Roll back if any of these happens after the deployment:
| Signal | Trigger | For how long | Where you see it |
|---|---|---|---|
| Error rate | Above ____% (normal: ____%) | 5 minutes | ____ |
| p95 response time | Above ____ ms (normal: ____ ms) | 10 minutes | ____ |
| Core journey | Sign-in, checkout or ____ fails | Once | Smoke tests |
| Data | Any wrong, missing or duplicated data | Once | Checks, reports |
| Customer reports | ____ reports of the same problem | 30 minutes | Support queue |
| Fixing forward | No tested fix within ____ minutes | Once | Release channel |
## Decision
- The decision maker can order a rollback alone, without a meeting.
- If a trigger is hit, roll back first and investigate afterwards.
- Fixing forward instead needs all three: the cause is known, the fix is small and reviewed, and it ships faster than the rollback. The decision maker says so in the release channel.
## Rollback steps
### 1. Announce
- [ ] "Rolling back ____ to ____" posted in ____, with the trigger that was hit
- [ ] Maintenance banner or status page updated, if customers are affected
### 2. Code
- [ ] Version ____ re-deployed through the normal pipeline, not a hand-built copy
- [ ] Caches and the CDN purged, if the release changed static files
- [ ] Background jobs started by the new version stopped or drained
### 3. Configuration
- [ ] Config values and environment variables changed for this release reverted: ____
- [ ] Infrastructure changes the old version can't run with reverted: ____
### 4. Database
- [ ] If the migrations only added things, the schema stays as it is: the old version runs on it
- [ ] If a migration must be reversed: the reviewed down-migration ____ run (rehearsed on Staging on ____)
- [ ] Last resort only: the backup from ____ restored, with the decision maker's sign-off first. Everything written since the backup is lost and must be reconciled
## Verification
- [ ] Production reports version ____
- [ ] Smoke tests pass: sign-in, ____, ____
- [ ] Error rate and response times back to normal
- [ ] Background jobs running and queues draining
- [ ] Data written while the bad release was live checked and repaired
## Communication
| Audience | Message | Channel | Owner |
|---|---|---|---|
| Release team | Rolling back, then rolled back and verified | ____ | Rollback owner |
| Support | What customers may have seen, and what to tell them | ____ | Support lead |
| Stakeholders | What happened, the impact, next steps | Email | Release manager |
| Customers, if affected | What happened, and that it's resolved | Status page, email | Product owner |
## After-action
- [ ] Rollback recorded: date, environment, version, outcome
- [ ] Release status updated, and published release notes corrected if they announced the rolled-back changes
- [ ] Review held within ____ working days: trigger, time to detect, time to restore, cause
- [ ] Fix planned and the release rescheduled, with a new readiness check
- [ ] This plan updated with anything that didn't work
How to use it
- Fill in the plan while you prepare the release, not during it. Keep it next to the release runbook so both are open on the day.
- Set the triggers from your normal numbers: look at last week's error rate and response times, and set the thresholds clearly above them.
- Name one decision maker and a backup, and check that both are available during the deployment and for a few hours after it.
- Delete the database options that don't apply, so what's left is a plan rather than a menu.
- Rehearse the rollback on Staging for any release with a migration, and note the date in the scope table.
- If a trigger is hit, work down the steps in order and tick them as you go.
Tips for any rollback plan template
A good rollback strategy starts before the plan is written, in how you build the release.
- Make releases reversible by design. Change the database in two steps: add new tables and columns first, and remove old ones in a later release (expand and contract). Then rolling back the code never needs a restore.
- Roll back by re-deploying the previous build. It already passed your pipeline. A hand-patched server is a new, untested release.
- Know your point of no return. Some changes can't be undone by a re-deploy: a migration that rewrites data, emails already sent, payments already taken. Write them in the plan and prepare the fix forward in advance.
- Time-box fixing forward. "Five more minutes" is how a short incident becomes a long evening. When the time is up, roll back.
- Common mistake: a backup nobody has restored. Until you've tested a restore, you don't know whether it works or how long it takes.
- Common mistake: rolling back the code but not the config. A new config value left in place can break the old version.
If you do fix forward, ship the fix with the hotfix checklist: it keeps the backup, the check on Staging and the merge-back that a rushed fix tends to skip.
Running it in Releasecut
Your pipeline does the rollback; Releasecut keeps the record straight. When an environment gets a release it ran before, whether your CI records the deployment through the API or someone records it by hand, Releasecut records it as a rollback automatically. The what's deployed where screen then shows which version production is really running and since when, and the deployment history keeps the rollback on record, labelled as one. Your pipeline can report failed deployments too.

Both feed the delivery metrics: failed and rolled-back deployments count towards the change failure rate, and a rollback counts as a restore in time to restore. Keep your rollback steps as an organisation template. When a trigger is hit, add them to the release's checklist and put an owner on each; after the run, planned against actual minutes and Copy PIR give the after-action review its timeline. Saved templates depend on your plan; see pricing.
Questions
What is a rollback plan?
A short document that says how a release will be undone if it fails: the triggers, who decides, the steps for code, configuration and data, and how to confirm it worked. Write it before the release, alongside the runbook.
What is the difference between a rollback and a fix forward?
A rollback returns to the last version that worked; a fix forward ships a new change to repair the broken one. Rolling back is usually faster and returns you to a known state. Fix forward when rolling back would do more harm, for example after a data migration you can't reverse.
How do you roll back a database migration?
Ideally you don't have to: write migrations the previous version can still run on, and remove old columns in a later release. If a migration must be reversed, run a reviewed and rehearsed down-migration. Restoring a backup is the last resort, because it loses everything written since.
Does every release need a rollback plan?
Every release needs an answer to "how do we undo this?". For a routine change that can be one line, "re-deploy the previous version", but releases with migrations, config changes or effects outside your system need the full plan.