Created script for destroying snapshots automatically made during apt upgrades

This commit is contained in:
Alex Tavarez
2025-09-07 09:58:22 -04:00
parent 728fc436e8
commit 19ba67cab2

View File

@@ -0,0 +1,4 @@
#!/bin/bash
set -euo pipefail
zfs list -t snapshot | grep 'apt-' | sed 's| .*$||g' | head -n -5 | xargs -d '\n' -I {} sudo zfs destroy {}