Created script for destroying snapshots automatically made during apt upgrades
This commit is contained in:
1 parent
728fc436e8
commit
19ba67cab2
1 file changed
+4
@@ -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