Hi!

"Joseph L. Casale" <jcas...@activenetwerx.com> 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/bacula/delete_catalog_backup"
>   }
>
> But I missed the part where the default is "runs on client". I since then
> added "RunsOnClient = No" (even though the client in this case is the 
> director)
> which only changed the error to:
>
> AfterJob: /var/lib/bacula/*.bsr: No such file or directory
>
> If the same string is in a shell script, and the command simply points to it,
> it works.

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 execute the shell script from bacula.

HTH,
Tobias

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to