Skip to content

Instantly share code, notes, and snippets.

@hi-ko
Forked from ThomasLeister/remove-zfs-auto-snapshot
Created March 30, 2023 18:38
Show Gist options
  • Save hi-ko/6d5746e62faa00a1e09ba2bd3c0d385e to your computer and use it in GitHub Desktop.
Save hi-ko/6d5746e62faa00a1e09ba2bd3c0d385e to your computer and use it in GitHub Desktop.
### Remove all snapshots crteated by the zfs-auto-snapshot tool
zfs list -t snapshot -o name | grep zfs-auto-snap | tac | xargs -n 1 zfs destroy -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment