Pcornel
Automation · Storage Automation

Snapshot Automation

Cheat sheet · https://pcornel.dk/topic.php?topic=5750

Back to the Topic

Answer

Snapshot automation creates snapshots on a schedule with retention, such as zfs-auto-snapshot, sanoid or array schedules, and prunes old ones so they do not fill the pool.

Remember

  • Schedule snapshots with retention.
  • Prune old snapshots.
  • Snapshots alone are not backups.

First checks

  • zfs snapshot <ds>@auto-$(date +%F) — create
  • sanoid --cron — policy-based snapshots
  • Retention/pruning — cleanup

Verify in this order

schedule → snapshot → retention prune

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5750

Confirmation

Confirm action

Continue?