Re: [Bacula-users] job run script error

2009-09-30 Thread Joseph L. Casale
>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

Re: [Bacula-users] job run script error

2009-09-30 Thread Tobias Brink
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

Re: [Bacula-users] job run script error

2009-09-30 Thread Steve Ellis
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/" >

Re: [Bacula-users] job run script error

2009-09-30 Thread Joseph L. Casale
>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,

Re: [Bacula-users] job run script error

2009-09-30 Thread Dajka Tamas
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,