Disaster recovery
Plan for losing a server, a database, a provider or a key person. Back up where nobody can delete, write the restore steps down, and practise.
- Required 4
- Recommended 4
- Optional 2
Required
Set recovery targets
OPS-44Decide how much data you can lose and how long you can be down, for each service, and design backups to meet both.
Back up off the machine
OPS-45Copy backups automatically to storage in another place, which an attacker on the server cannot delete.
Keep one backup copy that no account can delete
OPS-80Keep at least one copy of every backup under a lock that no account, the owner included, can lift before the retention period ends. Hold its encryption key outside the cloud account that stores it.
Practise restoring
OPS-48Rebuild the whole service from backups on a fresh machine on a schedule, and time it.
Recommended
Keep backups for a set time
OPS-46Keep each backup for a fixed period, such as 35 days of daily copies, and let the storage delete it when the period ends.
Write the restore runbook
OPS-47Write the exact steps to rebuild the service from nothing, including where the backups and keys are.
Write a business continuity plan
OPS-79Write one plan for keeping the business running through a long outage, loss of a key person or loss of a key supplier. Name who decides, how staff and customers hear from you, and the manual workarounds.
Run a game day every quarter
OPS-71Every quarter, break one part of a staging copy on purpose and let the on-call person find and fix it. Time how long both steps take.
Optional
Add a second region only when the recovery targets need it
OPS-75Run in a second region only when a contract or law demands it, or the recovery time target is shorter than a rebuild elsewhere takes. Choose the setup from the targets.
Inject failures in production once staging drills pass
OPS-85When four staging game days in a row met their recovery targets, run small planned failures in production. Limit each to a share of traffic, with an automatic stop.
Read this with
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/operations/disaster-recovery">Agent Wranglers operations and observability playbook</a>. In code you write, add a comment next to it with the same link.