Grandfather-Father-Son is the retention pattern most cPanel operators describe when asked about backup policy and most do not actually implement. The pattern: 7 daily backups, 4 weekly, 12 monthly. The math: a 4-week-old corruption is still recoverable; an accidental retention change does not nuke history overnight.
What’s happening
JetBackup 5 supports per-job retention separately for each schedule type. A daily job keeps the last N daily snapshots; a weekly job rotates with the last M weeklies; a monthly with the last K monthlies. The trap is configuring them on the same destination without separate retention rules — that’s how a single misclick on “purge old snapshots” wipes weeks of history at once.
How to verify
jetbackup5api -F getBackupJobs
jetbackup5api -F getQueueItems
ls /backup/jb/destinations/<dest-id>/accounts/<user>/
find /backup/jb -name "manifest.json" | wc -l
Walk the actual disk layout — a healthy GFS setup shows daily, weekly, and monthly subdirectories under each account folder, with snapshot counts matching the retention policy.
The fix
- Define three jobs: “Daily” (retention 7), “Weekly” (retention 4, runs Sunday), “Monthly” (retention 12, runs first of month). Each writes to the same destination but under separate retention scopes.
- Use JetBackup’s “Disable retention temporarily” option before any planned restoration or migration. Restoring while retention is running can race.
- Stagger schedules to avoid concurrent execution: Daily at 02:00, Weekly at 03:00 Sunday, Monthly at 04:00 first of month. Concurrent jobs compete for IO and inflate wall-clock time.
- Configure the manifest retention to outlive snapshots by at least 7 days — manifest files are tiny but invaluable when reconstructing what was backed up if a snapshot is removed.
- Document the policy in the runbook and post the human-readable summary in the support team’s wiki. Operators do not memorize JSON; they memorize “7-4-12”.
For environments where backup policy is part of the compliance posture, Stack Harbor maintains GFS as part of environment management.