---
title: "Backups and recovery · Agent Wranglers"
url: https://agentwranglers.se/playbook/data/backups-and-recovery
updated: 2026-10-20
licence: "All rights reserved"
---

# Backups and recovery

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

> Encrypt every database backup, keep point-in-time recovery where data changes all day, and prove each backup restores. Schedules and targets live in operations.

**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 data playbook: https://agentwranglers.se/playbook/data/backups-and-recovery`.

## Required

- [Encrypt backups](https://agentwranglers.se/playbook/data/backups-and-recovery/encrypted-backups): Encrypt every backup before it leaves the server, and keep the key apart from the backups.
- [Prove restores work](https://agentwranglers.se/playbook/data/backups-and-recovery/restore-tests): Restore a backup on a schedule and check the result. An untested backup is a hope, not a backup.

## Recommended

- [Keep point-in-time recovery for busy databases](https://agentwranglers.se/playbook/data/backups-and-recovery/point-in-time-recovery): Where losing a day of writes is not acceptable, keep the database's change log, so you can restore to any moment.

- Previous: [Migrations](https://agentwranglers.se/playbook/data/migrations)
- Next: [Personal data](https://agentwranglers.se/playbook/data/personal-data)
- [All chapters](https://agentwranglers.se/playbook/data)
