Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save geraldurbas/a6b860bd9292219c826edfcd60b079fa to your computer and use it in GitHub Desktop.
Save geraldurbas/a6b860bd9292219c826edfcd60b079fa to your computer and use it in GitHub Desktop.
ZFS Reclaim space used by too many or often changed snapshots
zfs list -t snapshot -o name -S creation Pool/FSName | tail -n +16 | xargs -n 1 zfs destroy -vr
via
https://serverfault.com/questions/340837/how-to-delete-all-but-last-n-zfs-snapshots
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment