Hello, Bill,

Just FIY, I'm using Bacula 9.0.3.
Regards,

----- Original Message -----
> From: "Bill Arlofski" <waa-bac...@revpol.com>
> To: bacula-users@lists.sourceforge.net
> Sent: Monday, March 12, 2018 7:30:50 PM
> Subject: Re: [Bacula-users] Run Job Script not Replacing %f Character 
> Substitution

> 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

-- 
=========================================================================== 
Heitor Medrado de Faria | CEO Bacula do Brasil & USA | Visto EB-1 | LPIC-III | 
EMC 05-001 | ITIL-F 
• Não seja tarifado pelo tamanho dos seus backups, conheça o Bacula Enterprise 
http://www.bacula.com.br/enterprise/ 
• Ministro treinamento e implementação in-company do Bacula Community 
http://www.bacula.com.br/in-company/ 
• Compre o novo livro do Bacula http://www.bacula.com.br/livro 
Brazil +55 (61) 98268-4220 | USA +1 (323) 300-5387 | www.bacula.com.br 
============================================================================ 
Indicamos as capacitações complementares: 
Shell básico e Programação em Shell com Julio Neves | Zabbix com Adail Host. 
============================================================================

------------------------------------------------------------------------------
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