From: Eric Bollengier Date: Fri, 6 Nov 2020 19:21:48 +0000 (+0100) Subject: Add event with full restore command X-Git-Tag: Release-11.3.2~851 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afca71ae161f1f8607a4e1d963956d07c1844e31;p=thirdparty%2Fbacula.git Add event with full restore command --- diff --git a/bacula/src/dird/ua_restore.c b/bacula/src/dird/ua_restore.c index 14ec828f3..8e764e7f5 100644 --- a/bacula/src/dird/ua_restore.c +++ b/bacula/src/dird/ua_restore.c @@ -384,6 +384,11 @@ int restore_cmd(UAContext *ua, const char *cmd) if (find_arg(ua, NT_("yes")) > 0) { pm_strcat(ua->cmd, " yes"); /* pass it on to the run command */ } + + ua->send_events("DJ0004", + EVENTS_TYPE_COMMAND, + "%s", ua->cmd); + Dmsg1(200, "Submitting: %s\n", ua->cmd); /* * Transfer jobids, component stuff to jcr to