Closed umatz closed 3 years ago
After reviewing the sourcecode I can confirm, that refreshBackupPlans
is executing the pre and post commands. But as far as I can see this is only being done when starting the daemon (probably for immediate feedback if something fails).
When the daemon is running refreshBackupPlans
will not be invoked until restart.
or when it gets a HUP signal ... this is intentional.
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.
Hi,
I was trying to make use of the pre/post-send commands and run into a problem. My configuration looks like this:
Apart from the issue that the post command in its current form will never return (which I will have to take care of), I run into the problem that the pre- and post-send commands are each run twice. I believe this is an error. After a short look into znapzend/lib/ZnapZend.pm I noticed that both commands are already run in the function(?) refreshBackupPlans and then again in sendRecvCleanup. I am no perl programmer, but I believe that the handling of Pre-/post-send commands should be removed from refreshBackupPlans.
Here is the output from running znapzend with debug logging