Closed jimklimov closed 6 years ago
you might want to add a note that the purpose of the recursive setting (as it was intended originally) was to provide the ability to create consistent backup snapshots for hierarchies of filesets. THis is accomplished by telling zfs to create a recursive snapshot ... so conceptually it is not possible to exclude anything from this kind of recursion ... the transfer then happens individually, so there pruning would be possible.
another option would be to introduce a second type of recursion which does NOT use zfs recursive snapshots ...
My use-case was for the second type (or a mix of tree/single snaps where calculatable), so I can set up snapshot policy e.g. for the whole rpool, exempt swap/dump/tmp/... datasets as i think of such exceptions (don't want to waste local space on snaps of old swap, right?)
A similar case might be to apply different policies to subtrres, e.g, do snapshot some scratch location a'la tmp, but don't keep it for years unlike other rpool defaults.
Added a note about that. And about troubleshooting my way back out of local tinkering ;)
thanks
I put this bit as a separate PR, because either I got something wrong (then please explain it before rejecting - so I can apply and document the use-case), or there is currently a surprise for users like me trying to migrate from
time-slider
andzfs-auto-snapshot
:)