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

[feature request] org.znapzend:pre/post_zend_cmd #570

Closed papamoose closed 2 years ago

papamoose commented 2 years ago

I'd like the ability to run a command based on whether or not a send has finished properly. Ultimately I'd like to ping a webhook with information that a send has not worked.

It could take the following form: org.znapzend:pre_zend_cmd org.znapzend:post_zend_cmd

For me only post_zend_cmd would be used. I actually can't think of a reason I need pre_zend_cmd. I'm only including it because there is one for znaps.

Both commands would automatically import environment variables that contain the status of the send.

Environment variables to be included could be: zend_state: a boolean or set of known values that can be used to know the state of a send for a particular dataset. zend_source: the source dataset. zend_destination: where the dataset was being sent to. (e.g. org.znapzend:dst_0) zend_error: whatever the issue was. Empty if send ok.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.