blog'o'less
A blog by an unpretentious system administrator
Tuesday, August 6, 2013
mass destroy zfs snapshots
Please pay attention...
zfs list -t snapshot|awk '{print $1}' > /tmp/zfstodestroy
Edit the file to delete the snapshots you don't want to delete!
Then:
while read uuid; do zfs destroy $uuid; done < <(cat /tmp/zfstodestroy)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment