Backups with any tool, for 3-2-1, live-data copies, keys, retention, alerts, restore tests, restic, rsync. Load before any edit to a backup script or job, however small, and for backup questions.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Backup Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ku5ic-backup-patterns)
---
name: backup-patterns
description: Backups with any tool, for 3-2-1, live-data copies, keys, retention, alerts, restore tests, restic, rsync. Load before any edit to a backup script or job, however small, and for backup questions.
---
# Backup patterns
Default assumption: restic 0.20, per the restic changelog, and rsync 3.5, per the rsync NEWS. The rules without a tool name hold for any backup tool and any data store.
A restic or rsync row applies when the installed tool is at least its version. Each database engine's dump entries, and PostgreSQL's restore entries, are in sql-patterns.
## Reference files
Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.
| Before | Read |
| -------------------------------------------------------------------------- | -------------------------------------------------------- |
| Writing a restic or rsync call, or raising either tool's version | [reference/upgrades.md](reference/upgrades.md) |
| Writing, changing, or reviewing a backup script or job | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Choosing where copies go, retention, scheduling, or a restore test | [reference/practices.md](reference/practices.md) |
| Running ShellCheck, `systemd-analyze verify`, or a secret scanner on a job | [reference/tooling.md](reference/tooling.md) |