restic-dev Examples
Complete, end-to-end walkthroughs that thread the individual skills into a real workflow. Read the scenario closest to the situation, then use the underlying skills for detail.
Scenarios
| Scenario | File | Covers |
|---|---|---|
| Docker server → R2 (the full setup) | references/scenarios/docker-server-r2-full.md | recon → discover (incl. data outside /docker) → R2 repo → script → Kyiv systemd timer → verify → enable → monitoring |
| Non-systemd host (cron) | references/scenarios/non-systemd-cron.md | same flow with a cron + flock schedule instead of systemd |
| Disaster recovery / rebuild | references/scenarios/disaster-recovery-rebuild.md | restore files + replay DB dumps; rebuild on a fresh server |
| Multi-database stack | references/scenarios/multi-db.md | postgres + mysql + mongo + redis-as-cache in one backup |
The shape of every setup
setup— recon (arch / init / tz / disk / docker), install latest restic.discover-backup-sources— inspect every container, build the backup plan, confirm with the user.repository-setup— password (copy off-server!), R2 creds,init.backup-script— dumps + paths + exit-3 tolerance + retention.scheduling— systemd timer (or cron), but don't enable yet.verify-backup— first run, check, test-restore → then enable.monitoring— dead-man's-switch + freshness + periodic check.disaster-recovery— kept ready for the day you need it.
The scenarios make each step concrete with real commands and the decisions made along the way.