Bacula-users

Re: [Bacula-users] Access to client name in the run before job script?

2008-10-31 06:30:36
Subject: Re: [Bacula-users] Access to client name in the run before job script?
From: Arno Lehmann <al AT its-lehmann DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 31 Oct 2008 11:27:21 +0100
Hi,

31.10.2008 11:06, Kevin Keane wrote:
> Hi,
> 
> I'm trying to find a way to pass the client name to the run_before 
> script, but I can't see a way to actually make it work. Apparently, 
> variable expansion is not available for the Run Before Job?
> 
> In my JobDef, I have the line:
> 
>   Run Before Job = "/usr/local/sbin/myscript ${Client}"
> 
> The script executes for each backup job, but always receives the literal 
> ${Client} instead of the actual client name.
> 
> Is there a way to make this work?

Probably... try "%c" instead of the $-Syntax (which would, if at all, 
only work in a counter), as per 
http://www.bacula.org/manuals/en/install/install/Configuring_Director.html#character_substitution

Arno

> Thanks!

-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users