# Backup tools

Three packages, different failure modes. Pick one primary strategy per data set.

| Need | Package | Entry | Downtime |
| --- | --- | --- | --- |
| Entire Docker **named volumes**; short outage OK | `docker-volumes/` | `docker_volume_cold_restic.sh` | Stops running containers during export |
| Host **directory paths** (e.g. `/opt/pod`) into restic | `paths/` | `restic_backup.sh` | Depends on what those paths contain; no volume freeze |
| **MySQL / Postgres / SQLite** consistent dumps | `databases/` | per-engine script | Hot/logical where the engine allows |

## Config

- Copy `config.example.env` to the runtime name documented in each package README
  (often `.restic_env` next to the script on the server).
- Set `chmod 600` on real env files.
- Do not commit filled env files into this repository.

## Related

- OSS restic binary notes: `../notes/oss-packages.md`
