>That’s because the shell interprets the * glob but bacula doesn’t.
>The shell will replace "/var/lib/bacula/*.bsr" with a list of matching
>file names (if these files exists) while bacula will send the string
>as is to the program. The solution is to put your command into a
>shell script and exec
Hi!
"Joseph L. Casale" writes:
> I had the following:
> RunScript {
> RunsWhen = After
> RunsOnFailure = Yes
> FailJobOnError = Yes
> Command = "scp -i /path/to/key -o StrictHostkeyChecking=no
> /var/lib/bacula/*.bsr u...@host:/path/Bacula/"
> Command = "/usr/lib
On 9/30/2009 10:04 AM, Joseph L. Casale wrote:
> Hmm,
> I had the following:
>RunScript {
>RunsWhen = After
>RunsOnFailure = Yes
>FailJobOnError = Yes
>Command = "scp -i /path/to/key -o StrictHostkeyChecking=no
> /var/lib/bacula/*.bsr u...@host:/path/Bacula/"
>
>Hi,
>
>Shouldn't it be "RunAfterJob", since the bootstrap files are on the director?
>
>On the JobDef, where are you putting the bootstraps? ( for me, in the default
>JobDef there's 'Write bootstrap = "/var/lib/bacula/%c_%t_%n.bsr" ' - %c =
>client name, %t = job >type, %n = jobname )
>
>Cheers,
Hi,
Shouldn't it be "RunAfterJob", since the bootstrap files are on the director?
On the JobDef, where are you putting the bootstraps? ( for me, in the default
JobDef there's 'Write bootstrap = "/var/lib/bacula/%c_%t_%n.bsr" ' - %c =
client name, %t = job type, %n = jobname )
Cheers,