--- On Mon, 4/28/08, Israel Miranda <programadorlinux AT gmail DOT com> wrote:
> From: Israel Miranda <programadorlinux AT gmail DOT com>
> Subject: Re: [Bacula-users] Read all config files in a directory
> To: bacula-users AT lists.sourceforge DOT net
> Date: Monday, April 28, 2008, 2:43 PM
> Bacula already support a way of doing this.
> Since bacula 2.2.0 bacula support inputs from the command
> line, with the |@
> command
> I do exacly what you want with the following line in my
> config:
>
> @|"sh -c 'for f in /etc/bacula/conf.d/*.conf ; do
> echo @${f} ; done'"
>
Thanks, I will give it a try. But, I still think that it would be a great
feature to add a simple include statement.
> this command make bacula includes every file with the .conf
> extension within
> the /etc/bacula/conf.d/ directory.
>
> I learnt that in bacula wiki, you should check it out:
> http://wiki.bacula.org/doku.php?id=sample_configs
>
> 2008/4/28 Marc Schiffbauer <marc AT schiffbauer DOT net>:
>
> > * 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.
> >
> > -Marc
> >
> > --
> > ****************************************************
> > * (morganj): 0 is false and 1 is true, correct? *
> > * (alec_eso): 1, morganj *
> > * (morganj): bastard. *
> >
> >
> -------------------------------------------------------------------------
> > 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
> >
>
>
>
> --
> Meus cumprimentos,
>
> Israel Vinícius Nogueira
> Miranda-------------------------------------------------------------------------
> 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
Hemant Shah
E-mail: hjrrs AT yahoo DOT com
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------------------------------------------------------------------
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
|