diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-18 11:15:57 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-18 11:15:57 -0600 |
| commit | 2e8e5cdd980098241fbd5f6d92f05111818f574a (patch) | |
| tree | 0f1df49d25586477c58439efe9fad74a5d5dfcf4 /scripts/test-vm.sh | |
| parent | 6505511f2e6b43a37570fc840f6d2851c7cc170c (diff) | |
| download | archangel-2e8e5cdd980098241fbd5f6d92f05111818f574a.tar.gz archangel-2e8e5cdd980098241fbd5f6d92f05111818f574a.zip | |
Add snapshot retention with automatic pruning
Implements hybrid retention policy:
- Always keep 20 most recent snapshots
- Delete snapshots beyond #20 only if older than 180 days
- Genesis snapshot is always protected
Features:
- zfs-snap-prune script with --dry-run, --test, --verbose modes
- Comprehensive test suite (22 tests)
- Runs automatically after pacman operations
- Daily systemd timer for cleanup
- Regenerates GRUB menu after pruning
This prevents unbounded snapshot growth while preserving
recent history and the genesis snapshot.
Diffstat (limited to 'scripts/test-vm.sh')
0 files changed, 0 insertions, 0 deletions
