diff --git a/zfs-destroy-apt-snapshots.sh b/zfs-destroy-apt-snapshots.sh new file mode 100644 index 0000000..746980c --- /dev/null +++ b/zfs-destroy-apt-snapshots.sh @@ -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 {} \ No newline at end of file