Skip to content

Instantly share code, notes, and snippets.

@xrishox
Forked from jstutters/zfs_cleanup.sh
Created May 9, 2023 22:05
Show Gist options
  • Save xrishox/09e906196167beb7967ff8efc873abd8 to your computer and use it in GitHub Desktop.
Save xrishox/09e906196167beb7967ff8efc873abd8 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