aaronhurt/zfs-replicate

Destroy snapshot recursively

Closed this issue · 2 comments

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.

I believe pull request #11 fixes this issue .. please re-open if this isn't what you wanted.

Thanks!