Use this when choosing a rotation that keeps daily, weekly and monthly or yearly backups.
Grandfather-Father-Son
Grandfather-father-son (GFS) is a rotation scheme that keeps daily (son), weekly (father) and monthly or yearly (grandfather) backups, giving long history with a limited number of copies.
1. Grandfather-father-son: daily (son), weekly (father), monthly (grandfather) backups.
2. Long history with few copies.
3. Implement with retention rules.
4. Add yearly if required.
5. Check pruning works.
daily → weekly → monthly tiers
Context & applicabilityCommon mistakes · platform/version boundaries
- Monthly/yearly copies stored on the same repository as dailies.
- GFS points created from a failed backup without verification.
- Too many yearly points kept without a reason.
- Not documenting which day becomes the weekly/monthly point.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Sons are dailies, fathers weeklies, grandfathers monthlies or yearlies.
- Long history with a limited number of copies.
- Retention must match legal and business needs.
restic forget --keep-daily 7 --keep-weekly 4 --keep-monthly 12— GFS examplebackup job schedule— sons/fathers/grandfatherstape rotation log— GFS on tape
ReferenceHow it works1 section · depth on demand
GFS example
| Level | Kept |
|---|---|
| Son (daily) | 7–14 days |
| Father (weekly) | 4–5 weeks |
| Grandfather (monthly) | 12 months |
| Yearly | 7–10 years (optional) |
Most backup tools implement GFS as flags on restore points; with immutable storage, the lock period must match the GFS retention for each point.
ReferenceImportant terms & boundaries3 sections · depth on demand
In depth
Grandfather-father-son as a concrete policy
GFS keeps three tiers: frequent short-lived copies (son, usually daily), fewer medium-term copies (father, weekly) and few long-lived copies (grandfather, monthly or yearly).
| Tier | Typical rule | Restore granularity |
|---|---|---|
| Son | 7 daily | Any day of the last week |
| Father | 4–5 weekly | One point per week for a month |
| Grandfather | 12 monthly (+ yearly) | One point per month for a year |
Expressed with restic
$ restic forget --keep-daily 7 --keep-weekly 4 --keep-monthly 12 --keep-yearly 5 --dry-run
$ restic snapshots --compact
The restic documentation explains that each --keep-* period counts calendar periods that contain at least one snapshot, and that a snapshot is kept if it matches any rule — so the newest snapshot of a week can be both a "daily" and the "weekly" copy. That overlap is why GFS needs fewer copies than the sum of the tiers.
Storage cost
With deduplicating tools (restic, Borg, ZFS snapshots) each extra point costs only changed data. With full copies on tape or disk, GFS directly multiplies storage:
| Rule | Full copies kept (approx.) |
|---|---|
| 7 daily + 4 weekly + 12 monthly | ~23 |
| + 5 yearly | ~28 |
Pitfalls
- Weekly and monthly copies must come from a successful backup; alert on failed jobs, or the "monthly" may be weeks older than expected.
- Keep at least one tier offline or immutable — GFS alone does not protect against an attacker who can delete the repository.
- Test restores from the oldest tier; old formats and keys are where restores fail.
*The daily, weekly, monthly and yearly snapshot rules demonstrate a backup rotation schedule; no actual snapshot inventory is supplied.*
Worked example
Grandfather-father-son (GFS) keeps short-term, medium-term and long-term restore points with different retention:
| Tier | Created | Kept | Points |
|---|---|---|---|
| Son (daily) | Every day | 7 days | 7 |
| Father (weekly) | Sunday | 4 weeks | 4 |
| Grandfather (monthly) | Last Sunday of month | 12 months | 12 |
| Yearly (optional) | December | 7 years | 7 |
That is 30 restore points covering seven years instead of 2 555 daily ones. In disk-based tools GFS points are flags on synthetic or active fulls, not separate data copies.
Example
| Level | Kept |
|---|---|
| Son (daily) | 14 days |
| Father (weekly, Sunday) | 8 weeks |
| Grandfather (monthly, last Sunday) | 12 months |
| Yearly (optional) | 5–7 years |
Restore points needed: 14 + 8 + 12 + 5 = 39 points instead of thousands of daily copies.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Backup Strategy → Grandfather-Father-Son. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/34/r1/final · confidence 94%