-
-
Save beastycoding/18dfa1081efd1ddc17de87b1c4d96c50 to your computer and use it in GitHub Desktop.
Find and delete multiple ZFS snapshots
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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