Hello Heitor

I guess the option "%f" only work in the director side, It must be only on
RunBeforeJob or RunAfterJob.

Before submitting the specified command to the operating system, Bacula
performs character substitution of the following characters:

    %% = %
    %b = Job Bytes
    %c = Client's name
    %C = If the job is a Cloned job (Only on director side)
    %d = Daemon's name (Such as host-dir or host-fd)
    %D = Director's name (Also valid on file daemon)
    %e = Job Exit Status
    %f = Job FileSet (Only on director side)
    %F = Job Files
    %h = Client address
    %i = JobId
    %j = Unique Job id
    %l = Job Level
    %n = Job name
    %p = Pool name (Only on director side)
    %P = Current PID
    %s = Since time
    %t = Job type (Backup, ...)
    %v = Volume name (Only on director side)
    %w = Storage name (Only on director side)
    %x = Spooling enabled? ("yes" or "no")



Best regards

*Wanderlei Hüttel*
http://www.huttel.com.br

2018-03-12 21:10 GMT-03:00 Heitor Faria <hei...@bacula.com.br>:

>
>
> >> Hello, Bill,
> >>
> >> Just FIY, I'm using Bacula 9.0.3.
> >>
> >> Regards,
> >
> > Hi Heitor,
> >
> > Do you think this could be considered a bug?   I mean, what if you
> actually
> > wanted to run this script on the client and pass the Fileset to get some
> task
> > done?
> >
> > Can you try it in a RunScript{} stanza with RunsOnClient=yes (the
> default if
> > not specified)
> >
> > Would be interesting to know the result.
>
> RunScript{
>   RunsOnClient=yes
>   RunsWhen = After
>   Command = "/etc/bacula/scripts/monit.sh %i %c %f %n %b %e"
> }
>
> Returns:
>
> 12-mar 21:09 hfaria-asus-i5-fd JobId 141: shell command: run
> ClientAfterJob "/etc/bacula/scripts/monit.sh 141 hfaria-asus-i5-fd %f
> BackupClient1 0 OK"
>
> > Best regards,
>
> Regards,
>
> > Bill
> >
> >
> > --
> > Bill Arlofski
> > http://www.revpol.com/bacula
> > -- Not responsible for anything below this line --
>
> --
> ============================================================
> ===============
> 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
>
------------------------------------------------------------------------------
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