oetiker / znapzend

zfs backup with remote capabilities and mbuffer integration.
www.znapzend.org
GNU General Public License v3.0
609 stars 137 forks source link

ZNAP_NAME and ZNAP_TIME not set for post-snap script #554

Closed vasile-gh closed 3 years ago

vasile-gh commented 3 years ago

Hello,

I was trying to do some automation using post-snap scripts where I need ZNAP_NAME and noticed that it is not set for post-snap scripts.

I checked the code and confirmed that ZNAP_NAME is set only before calling the pre-send script.

I would do a pull request but I know no Perl.

If you don't intend to fix the code you should at least change the documentation to reflect that ZNAP_NAME is only set for the pre-script.

Thanks in advance!