Bacula-users

Re: [Bacula-users] Read all config files in a directory

2008-04-28 20:07:41
Subject: Re: [Bacula-users] Read all config files in a directory
From: Arno Lehmann <al AT its-lehmann DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 29 Apr 2008 01:58:05 +0200
Hi,

28.04.2008 09:10, Marc Schiffbauer wrote:
> * Hemant Shah schrieb am 28.04.08 um 04:25 Uhr:
>> Folks,
>>
>> Maybe this could be a feature request. 
>>
>> In a config file you can include another config file by specifying 
>> @/path/to/file. Is there a way to specify a path to a directory and have 
>> bacula daemons read all files in that directory.
>>
>> This would be similar to specifying config files for logrotate.
>>
>> Example:
>>
>> The bacula-dir.conf file would look like:
>>
>> Director
>> {
>> }
>>
>> @/path/to/directory/containing/dir/config/files
>>
>> If I need to add a client I just create a file in the directory and re-start 
>> director and it will read it. I do not have to add include statement in 
>> bacula-dir.conf file.
> 
> 
> +1
> 
> Good Idea! 
> 
> As a workaround you could have a script which creates your
> bacula-dir.conf automatically everytime you create a new sub-config
> file.

IIRC, you could also use an include like "|cat /etc/bacula/dir/*.conf" 
- I haven't treid that myself, and it's possible you need to use a 
shell and add more quoting, like in "|/bin/sh -c '/bin/cat 
/etc/bacula/dir/*.conf'" or something.

Arno

> -Marc
> 

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

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users