>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,
e, %t = job type, %n = jobname )
Cheers,
Tom
Feladó: Joseph L. Casale [jcas...@activenetwerx.com]
Küldve: 2009. szeptember 30. 17:30
Címzett: bacula-users@lists.sourceforge.net
Tárgy: [Bacula-users] job run script error
I am trying to execute a sim
I am trying to execute a simple scp of the bootstrap files after the catalog
backup.
It always says:
ClientAfterJob: /var/lib/bacula/*.bsr: No such file or directory
When run as root at the shell, it works fine. As the director runs as bacula, I
checked perms, and /var/lib/bacula and all the .bsr