Bacula-users

Re: [Bacula-users] Split bacula-dir.conf file in many .conf files

2008-05-27 11:54:22
Subject: Re: [Bacula-users] Split bacula-dir.conf file in many .conf files
From: Robert LeBlanc <robert AT leblancnet DOT us>
To: <bacula-users AT lists.sourceforge DOT net>
Date: Tue, 27 May 2008 09:40:39 -0600
With help from people on the list I came up with this for my clients because
I have a lot of them to. I've taken the approach similar to Apache on Debian
with a clients-available folder where the configs are stored, once file for
each client and a clients-enabled where I symlink to client-available for
clients that I want enabled.

A sample of my client config file is:
Client {
  Name = laforge-fd
  Address = laforge
  Catalog = MyCatalog
  Password = "mysecret"          # password for FileDaemon
  File Retention = 2 years            # 2 years
  Job Retention = 5 years            # 5 years
  AutoPrune = yes                     # Prune expired Jobs/Files
}

Job {
  Name = "laforge"
  JobDefs = "NightlySave"
  Client = laforge-fd
  FileSet = "LinuxCore"
  Priority = 20
}

I then include the following in my bacula-dir.conf file

# include all config in /etc/bacula/clients-enabled
@|"sh -c 'cat /etc/bacula/clients-enabled/*'"

That line reads the contents of all files in the clients-enabled directory
and loads them into the director configuration.

I have also done a similar thing with filesets since I have a few of them.
This has drastically reduced the size of my config files and makes it much
easier to read.

Robert



On 5/27/08 9:28 AM, "Reynier Perez Mira" <rperezm AT uci DOT cu> wrote:

> Hi,
> I have a huge quantity of clients and my bacula-dir.conf file is to long for
> read it. I'm asking if exists any way to split this file into many files,
> perhaps one or two files per client. Any help or guide?
> Cheers and thanks in advance
> Ing. Reynier Pérez Mira
> Grupo Soporte al Desarrollo - Dirección Técnica IP
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-- 
Robert LeBlanc
Life Sciences Computer Support
Brigham Young University
leblanc AT byu DOT edu
(801)422-1882


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users