Created script for destroying snapshots automatically made during apt upgrades
This commit is contained in:
4
zfs-destroy-apt-snapshots.sh
Normal file
4
zfs-destroy-apt-snapshots.sh
Normal 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 {}
|
Reference in New Issue
Block a user