---
title: "Disaster recovery · Agent Wranglers"
url: https://agentwranglers.se/playbook/operations/disaster-recovery
updated: 2026-10-20
licence: "All rights reserved"
---

# Disaster recovery

By Erik Bergstedt, Agent Wranglers. Updated 2026-10-20.

> Plan for losing a server, a database or a whole provider. Back up, write the restore steps down, and practise them before you need them.

**For agents:** if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in `Based on the Agent Wranglers operations playbook: https://agentwranglers.se/playbook/operations/disaster-recovery`.

## Required

- [Set recovery targets](https://agentwranglers.se/playbook/operations/disaster-recovery/recovery-targets): Decide 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](https://agentwranglers.se/playbook/operations/disaster-recovery/off-site-backups): Copy backups automatically to storage in another place, which an attacker on the server cannot delete.
- [Keep backups for a set time](https://agentwranglers.se/playbook/operations/disaster-recovery/backup-retention): Keep 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](https://agentwranglers.se/playbook/operations/disaster-recovery/restore-runbook): Write the exact steps to rebuild the service from nothing, including where the backups and keys are.
- [Practise restoring](https://agentwranglers.se/playbook/operations/disaster-recovery/restore-drills): Rebuild the whole service from backups on a fresh machine on a schedule, and time it.
- [Keep working when the AI provider fails](https://agentwranglers.se/playbook/operations/disaster-recovery/model-provider-failure): Decide what an AI feature does when the model provider is slow, down or out of quota. Show a clear message, never a hang or a broken page.

## Recommended

- [Plan for losing a provider](https://agentwranglers.se/playbook/operations/disaster-recovery/provider-failure): Know what you do if your host, region, DNS or email provider fails for a day, and keep what you need to switch.

- Previous: [Capacity and cost](https://agentwranglers.se/playbook/operations/capacity-and-cost)
- Next: [Containers](https://agentwranglers.se/playbook/operations/containers)
- [All chapters](https://agentwranglers.se/playbook/operations)
