Re: [Bacula-users] character substitution / client ip

2011-02-05 Thread Dan Langille
On 2/5/2011 6:17 PM, Paulo Martinez wrote: > Am 05.02.2011 um 20:54 schrieb Dan Langille: >> On 2/5/2011 2:03 PM, Paulo Martinez wrote: >>> Am 05.02.2011 um 15:52 schrieb Dan Langille: On 2/5/2011 8:07 AM, Paulo Martinez wrote: > Dear List, > > in the job resource, character substi

Re: [Bacula-users] character substitution / client ip

2011-02-05 Thread Paulo Martinez
Am 05.02.2011 um 20:54 schrieb Dan Langille: > On 2/5/2011 2:03 PM, Paulo Martinez wrote: >> Am 05.02.2011 um 15:52 schrieb Dan Langille: >>> On 2/5/2011 8:07 AM, Paulo Martinez wrote: Dear List, in the job resource, character substitution like this Write Bootstrap = "%c_

Re: [Bacula-users] character substitution / client ip

2011-02-05 Thread Dan Langille
On 2/5/2011 2:03 PM, Paulo Martinez wrote: > Am 05.02.2011 um 15:52 schrieb Dan Langille: >> On 2/5/2011 8:07 AM, Paulo Martinez wrote: >>> Dear List, >>> >>> in the job resource, character substitution like this >>> >>>Write Bootstrap = "%c_%n.bsr" >>> >>>%c = Client's name >>>%n = Job

Re: [Bacula-users] character substitution / client ip

2011-02-05 Thread Paulo Martinez
Am 05.02.2011 um 15:52 schrieb Dan Langille: > On 2/5/2011 8:07 AM, Paulo Martinez wrote: >> Dear List, >> >> in the job resource, character substitution like this >> >> Write Bootstrap = "%c_%n.bsr" >> >> %c = Client's name >> %n = Job name >> >> is nice to have. >> >> What about the ip of t

Re: [Bacula-users] character substitution / client ip

2011-02-05 Thread Dan Langille
On 2/5/2011 8:07 AM, Paulo Martinez wrote: > Dear List, > > in the job resource, character substitution like this > >Write Bootstrap = "%c_%n.bsr" > >%c = Client's name >%n = Job name > > is nice to have. > > What about the ip of the client? Is there a way to get the > client ip via suc

[Bacula-users] character substitution / client ip

2011-02-05 Thread Paulo Martinez
Dear List, in the job resource, character substitution like this Write Bootstrap = "%c_%n.bsr" %c = Client's name %n = Job name is nice to have. What about the ip of the client? Is there a way to get the client ip via such substitution? e.g. Run Before Job = "/usr/libexec/bacula/client

Re: [Bacula-users] Character Substitution

2010-02-02 Thread Richard Scobie
ganiuszka wrote: > In "Client Run After Job" directive "%v" will not be replaced because it > can be replaced only on Director side. > So if you has: > > Client Run After Job = "/path/script.sh %i %v" > > than > > %v will be empty. OK thanks. I actually have the "%i_%v" inside the shell script, s

Re: [Bacula-users] Character Substitution

2010-02-02 Thread ganiuszka
Richard Scobie pisze: > I have a "Client Run After Job" which runs a bash script which ends up > writing a file on the client, "%i_%v.txt" > > It all works except the substitution is not occuring and it is literally > writing the file %i_%v.txt. > > Is this expected? How do you create this fi

[Bacula-users] Character Substitution

2010-02-01 Thread Richard Scobie
I have a "Client Run After Job" which runs a bash script which ends up writing a file on the client, "%i_%v.txt" It all works except the substitution is not occuring and it is literally writing the file %i_%v.txt. Is this expected? Regards, Richard --

Re: [Bacula-users] Character substitution changed?

2009-03-10 Thread Markus Schulz
Am Mittwoch, 4. Februar 2009 schrieb Maxime: > Hello, > > It seems that %n character substitution changed from version 2.4.3 to > 2.4.4 (%n = Job name). > > There are 2 directors in production which both have these lines in > bacula-dir.conf (in a JobDefs resource): > RunAfterJob = "/usr/local/bin/

[Bacula-users] Character substitution changed?

2009-02-04 Thread Maxime
Hello, It seems that %n character substitution changed from version 2.4.3 to 2.4.4 (%n = Job name). There are 2 directors in production which both have these lines in bacula-dir.conf (in a JobDefs resource): RunAfterJob = "/usr/local/bin/bacula_job_status.sh %c %i %e %n %l" bacula_job_status.s