Hi,

06.09.2007 09:41,, [EMAIL PROTECTED] wrote::
> Hi, i'm trying to use internal bacula-variables in bacula-dir.conf
> in the fileset-section:

What kind of internal variables do you refer to? The ones mentioned in 
  the section "Variable expansion"? Then note the following:

"Please note that as of version 1.37, the Variable Expansion is 
deprecated and replaced by Python scripting (not yet documented).

Variable expansion is somewhat similar to Unix shell variable 
expansion. Currently (version 1.31), it is used only in format labels, 
but in the future, it will most likely be used in more places."

Adding these statements, I'd say that it's best not to use this feature...

But note that you can use Baculas syntax to get its configuration file 
as output of a program.

Arno

> 
> File = "|sh -c 'grep -i -s \"^$Client\"
> /path/to/bacula/etc/test-disklist | cut -f2 -d@ '"
> 
> The corresponding test-disklist is:
> 
> # test-disklist # format: hostname@/path/to/backup-dir_or_file # 
> hostname1@/tmp/xxx/dir1 hostname1@/tmp/xxx/file1 
> hostname2@/var/spool/dir-xxx hostname3@/home/username
> 
> During runtime the internal bacula-variable $Client ( i also tried
> ${Client} with and without '\' ) is always empty so every line is
> matched. How to do ?
> 
> Thanks, Markus 
> _____________________________________________________________________
>  Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu
> sparen! 
> http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
> 
> 
> -------------------------------------------------------------------------
>  This SF.net email is sponsored by: Splunk Inc. Still grepping
> through log files to find problems?  Stop. Now Search log events
> and configuration files using AJAX and a browser. Download your
> FREE copy of Splunk now >>  http://get.splunk.com/ 
> _______________________________________________ Bacula-users
> mailing list Bacula-users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to