Skip to content

Instantly share code, notes, and snippets.

@beastycoding
Forked from jstutters/zfs_cleanup.sh
Created May 19, 2024 19:52
Show Gist options
  • Save beastycoding/18dfa1081efd1ddc17de87b1c4d96c50 to your computer and use it in GitHub Desktop.
Save beastycoding/18dfa1081efd1ddc17de87b1c4d96c50 to your computer and use it in GitHub Desktop.
Find and delete multiple ZFS snapshots
zfs list -t snapshot -H -o name | grep "201509[0-9].*" | xargs -n1 echo
# zfs list -t snapshot -H -o name | grep "201509[0-9].*" | xargs -n1 zfs destroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment