Destroy snapshot recursively
Closed this issue · 2 comments
enricocavalli commented
Nice script!
I was playing around with it and I would use at line 197
https://github.com/leprechau/zfs-replicate/blob/master/zfs-replicate.sh#L197
a "zfs destroy -r" if recursion is enabled
from the man page
zfs destroy [-dnpRrv] filesystem|volume@snap[%snap][,...]
-r
Destroy (or mark for deferred destruction) all snapshots with
this name in descendent file systems.
aaronhurt commented
I believe pull request #11 fixes this issue .. please re-open if this isn't what you wanted.
enricocavalli commented
Thanks!