Write a Disaster Recovery Plan
Purpose
Define how a system is restored after a major disruption within agreed recovery time and data loss limits, with procedures precise enough to execute under stress and tests that prove the targets are achievable.
When to use
- A critical system has no DR plan, or the plan has never been tested.
- RTO/RPO targets must be agreed with the business or checked against the current architecture.
- An audit, regulator or customer requires documented and tested recovery capability.
When not to use
- The scope is only database backups and restores. Use
backup-restore-plan.
- A single failure mode needs a response procedure. Use
runbook.
- A disaster is happening now. Use
incident-response, then this plan's procedures if one exists.
Inputs
Required:
- The system in scope, its components and where they run.
- Business impact of downtime and data loss, or targets the business has stated.
Optional, improves quality:
- Current backup, replication and infrastructure-as-code setup; dependency map including third parties.
- Regulatory or contractual obligations (e.g. business continuity requirements under ISO 22301 or sector rules).
- Previous DR tests and incidents; budget constraints.
If the business impact or targets are unknown, ask who owns them; do not set RTO/RPO on their behalf. Proposed values are marked [PROPOSED] and need business sign-off.
Process
- Inventory components and dependencies (compute, data stores, queues, DNS, identity, secrets, certificates, third-party APIs) and tier each service by business criticality.
- Agree RTO and RPO per tier with the business owner; record who approved and flag targets that are unapproved.
- Define disaster scenarios: zone loss, region loss, data corruption or accidental deletion, ransomware or compromised account, critical third-party outage, loss of key people or access.
- Assess the current capability per scenario: achievable RTO/RPO with today's backups, replication and automation; list gaps against targets.
- Choose a recovery strategy per tier (backup and restore, pilot light, warm standby, active-active) and show the trade-off between cost, complexity and targets.
- Write the recovery order from dependencies: foundations first (network, identity, secrets, DNS), then data, then services, then traffic switch.
- Write step-by-step failover procedures with expected duration, owner and verification per step, including data consistency checks and how to handle in-flight transactions.
- Write failback procedures and the criteria for returning to the primary site; failback is often riskier than failover.
- Define roles and declaration: who can declare a disaster, decision criteria, escalation contacts, and how the team gets access if the primary identity provider is down (break-glass accounts stored securely).
- Define communication: internal, customers, regulators, with templates and timing.
- Define the test program: tabletop, component restore, full failover; frequency, success criteria (measured RTO/RPO) and evidence kept.
- Label every inference
[ASSUMPTION], list open questions, and suggest next skills: backup-restore-plan for data details, runbook per procedure, chaos-experiment for component tests, incident-communication for templates.
Output format
# Disaster Recovery Plan: <system>
Owner: <name> · Business approver: <name or [UNKNOWN]> · Last tested: <date or never>
## Scope and Service Tiers
| Service | Tier | RTO | RPO | Approved by |
## Dependencies and Recovery Order
## Scenarios and Current Capability
| Scenario | Achievable RTO/RPO today | Gap | Strategy |
## Failover Procedure
| # | Step | Owner | Expected duration | Verification |
## Failback Procedure and Criteria
## Roles, Declaration and Access
## Communication Plan
## Test Program
| Test type | Frequency | Success criteria | Evidence |
## Assumptions, Risks and Open Questions
Quality checklist
Common pitfalls
- Replication treated as backup. Replication copies corruption and deletions instantly; point-in-time recovery or immutable backups are needed.
- A plan that depends on the failed region's tools (identity, secrets vault, CI/CD, runbook wiki). Keep recovery access independent.
- RTO counted from the failure, while the plan ignores detection and declaration time. Include both.
Example
Input: "Core banking API + PostgreSQL, target RTO 1 h / RPO 5 min, single region, nightly backups."
Excerpt of output:
| Scenario |
Achievable today |
Gap |
Strategy |
| Region loss |
RTO [UNKNOWN] (never tested), RPO up to 24 h |
RPO misses 5-minute target |
Warm standby with cross-region streaming replication + point-in-time recovery |
| Data corruption |
RPO up to 24 h |
Same |
Continuous WAL archiving to immutable storage |
Open question: who in the business approved RTO 1 h / RPO 5 min, and is the standby cost accepted?
1---2name: dr-plan3description: "Writes a disaster recovery plan for a system: business-driven RTO/RPO per service tier, disaster scenarios, recovery strategy and dependency order, step-by-step failover and failback procedures, roles and declaration authority, communication and a test schedule with evidence. Use when a system lacks a DR plan, when RTO/RPO targets must be set or verified, before an audit, or after a DR test or incident revealed gaps."4license: MIT5metadata:6 source: https://skillmd.com/skills/muratdincer/dr-plan7 version: "1.0.0"8 language: en9 category: 07-devops-sre10 role: sre11 area: reliability12 title: "Write a disaster recovery plan"13 related: "backup-restore-plan, runbook, chaos-experiment, incident-communication, resilience-review"14 prompt: "Write a DR plan for our core banking API and its PostgreSQL database. Business wants RTO 1 hour and RPO 5 minutes; we run in one region with nightly backups."15---1617# Write a Disaster Recovery Plan1819## Purpose20Define how a system is restored after a major disruption within agreed recovery time and data loss limits, with procedures precise enough to execute under stress and tests that prove the targets are achievable.2122## When to use23- A critical system has no DR plan, or the plan has never been tested.24- RTO/RPO targets must be agreed with the business or checked against the current architecture.25- An audit, regulator or customer requires documented and tested recovery capability.2627## When not to use28- The scope is only database backups and restores. Use `backup-restore-plan`.29- A single failure mode needs a response procedure. Use `runbook`.30- A disaster is happening now. Use `incident-response`, then this plan's procedures if one exists.3132## Inputs33Required:34- The system in scope, its components and where they run.35- Business impact of downtime and data loss, or targets the business has stated.3637Optional, improves quality:38- Current backup, replication and infrastructure-as-code setup; dependency map including third parties.39- Regulatory or contractual obligations (e.g. business continuity requirements under ISO 22301 or sector rules).40- Previous DR tests and incidents; budget constraints.4142If the business impact or targets are unknown, ask who owns them; do not set RTO/RPO on their behalf. Proposed values are marked `[PROPOSED]` and need business sign-off.4344## Process451. Inventory components and dependencies (compute, data stores, queues, DNS, identity, secrets, certificates, third-party APIs) and tier each service by business criticality.462. Agree RTO and RPO per tier with the business owner; record who approved and flag targets that are unapproved.473. Define disaster scenarios: zone loss, region loss, data corruption or accidental deletion, ransomware or compromised account, critical third-party outage, loss of key people or access.484. Assess the current capability per scenario: achievable RTO/RPO with today's backups, replication and automation; list gaps against targets.495. Choose a recovery strategy per tier (backup and restore, pilot light, warm standby, active-active) and show the trade-off between cost, complexity and targets.506. Write the recovery order from dependencies: foundations first (network, identity, secrets, DNS), then data, then services, then traffic switch.517. Write step-by-step failover procedures with expected duration, owner and verification per step, including data consistency checks and how to handle in-flight transactions.528. Write failback procedures and the criteria for returning to the primary site; failback is often riskier than failover.539. Define roles and declaration: who can declare a disaster, decision criteria, escalation contacts, and how the team gets access if the primary identity provider is down (break-glass accounts stored securely).5410. Define communication: internal, customers, regulators, with templates and timing.5511. Define the test program: tabletop, component restore, full failover; frequency, success criteria (measured RTO/RPO) and evidence kept.5612. Label every inference `[ASSUMPTION]`, list open questions, and suggest next skills: `backup-restore-plan` for data details, `runbook` per procedure, `chaos-experiment` for component tests, `incident-communication` for templates.5758## Output format59```markdown60# Disaster Recovery Plan: <system>61Owner: <name> · Business approver: <name or [UNKNOWN]> · Last tested: <date or never>6263## Scope and Service Tiers64| Service | Tier | RTO | RPO | Approved by |6566## Dependencies and Recovery Order67## Scenarios and Current Capability68| Scenario | Achievable RTO/RPO today | Gap | Strategy |6970## Failover Procedure71| # | Step | Owner | Expected duration | Verification |7273## Failback Procedure and Criteria74## Roles, Declaration and Access75## Communication Plan76## Test Program77| Test type | Frequency | Success criteria | Evidence |7879## Assumptions, Risks and Open Questions80```8182## Quality checklist83- [ ] Every RTO/RPO has a named business approver or is marked `[PROPOSED]`.84- [ ] Current capability is compared with targets and gaps are explicit.85- [ ] Recovery order follows dependencies, including identity, secrets and DNS.86- [ ] Each procedure step has an owner, expected duration and verification.87- [ ] Data corruption and compromised-account scenarios are covered, not only infrastructure loss.88- [ ] A test program with measurable success criteria and evidence is defined.89- [ ] All checks pass; if any fails, revise the output and re-run this checklist before answering.9091## Common pitfalls92- Replication treated as backup. Replication copies corruption and deletions instantly; point-in-time recovery or immutable backups are needed.93- A plan that depends on the failed region's tools (identity, secrets vault, CI/CD, runbook wiki). Keep recovery access independent.94- RTO counted from the failure, while the plan ignores detection and declaration time. Include both.9596## Example97Input: "Core banking API + PostgreSQL, target RTO 1 h / RPO 5 min, single region, nightly backups."9899Excerpt of output:100| Scenario | Achievable today | Gap | Strategy |101|---|---|---|---|102| Region loss | RTO `[UNKNOWN]` (never tested), RPO up to 24 h | RPO misses 5-minute target | Warm standby with cross-region streaming replication + point-in-time recovery |103| Data corruption | RPO up to 24 h | Same | Continuous WAL archiving to immutable storage |104105Open question: who in the business approved RTO 1 h / RPO 5 min, and is the standby cost accepted?