Automation · Storage Automation
Snapshot Automation
Cheat sheet · https://pcornel.dk/topic.php?topic=5750
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)— createsanoid --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