]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Add event with full restore command
authorEric Bollengier <eric@baculasystems.com>
Fri, 6 Nov 2020 19:21:48 +0000 (20:21 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:58 +0000 (09:02 +0100)
bacula/src/dird/ua_restore.c

index 14ec828f3b49be100115dcc85c7a3517e9de6867..8e764e7f53dc0b77a00562aed027651c4baeb83d 100644 (file)
@@ -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