On 03/12/2018 04:18 PM, Heitor Faria wrote:
> Dear Bacula Users,
> 
> For several years I've noticed that %f is not working for Run Job script. 
> E.g.:
> 
> - ClientRunAfterJob = "/etc/bacula/scripts/monit.sh %i %c %n %f %s %b %e"
> 
> Output:
> 
> - 136 hfaria-asus-i5-fd BackupClient1 %f *none* 0 OK 
> 
> Am I doing something wrong?

Hi Heitor!

Only thing you are doing is using an older version. :)

This bug was actually semi-recently fixed. I cannot seem to find when it was
fixed, but I know I am using it daily in the AutoRestoreAndVerify.sh script I
had released to this list last year.

BTW, I am on 9.0.5, so this has been working since at this this time and this
version.

BUT.... I use the new RunScript syntax:

For example:

----8<----
  RunScript {
    RunsWhen = after
    RunsOnClient = no
    RunsOnFailure = no
    # Call _this_ script and pass the current backup job's jobid,
    # client, jobname, and fileset
-------------------------------------------------------------------------
    Command = "/etc/bacula/scripts/AutoRestoreAndVerify.sh %i %c %n %f"
  }
}
----8<----

Can you check your version and let me know if this Syntax works, while the
older ClientRunAfterJob does not?

Thank you!


Best regards,

Bill

-- 
Bill Arlofski
http://www.revpol.com/bacula
-- Not responsible for anything below this line --

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to