SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Includes in .conf files
Author Message
Post Includes in .conf files 
Kyle Marsh wrote:
Hi all,

I've seen allusions to being able to include files in bacula's
configuration files -- that would make my job of writing a script to
generate client and job entries much easier -- but I haven't been able
to find any references to it in the manual. Is this possible? If so
how?

It's in the manual alright =)

http://www.bacula.org/rel-manual/Customizin_Configurat_Files.html

--
Frank Sweetser fs at wpi.edu | For every problem, there is a solution that
WPI Network Engineer | is simple, elegant, and wrong. - HL Mencken
GPG fingerprint = 6174 1257 129E 0D21 D8D4 E8A3 8E39 29E3 E2E8 8CEC



[Bacula-users] Includes in .conf files From: Kyle Marsh

Hi all,

I've seen allusions to being able to include files in bacula's
configuration files -- that would make my job of writing a script to
generate client and job entries much easier -- but I haven't been able
to find any references to it in the manual. Is this possible? If so
how?

Thanks,

~Kyle Marsh

Post Includes in .conf files 
Kyle Marsh wrote:
Thanks all for your responses! Dave, I'm writing a python script that
parses a text file containing information about the bacula install
(working directory, install directory, director name, etc.) and
another containing information about all the clients that I need to
back up. It then creates a file with all the client and job
definitions that get included in the bacula-dir.conf file. It also
spits out a bacula-fd.conf for each client as well as creates and
signs the certificates required for TLS.

At the moment it's a very inflexible script -- I assume my own
convention for the locations of the files and such. When I get it
working, I'll see about parsing some command line arguments to tell it
where to look for files and where to put things, and possibly make it
a well behaved unix program (take input from stdin/send input to
stdout if nothing is specified, etc) but so far it reads from and
writes to specific files.

If you'd like I'll send you (or the list, if others are interested) an
e-mail when it's done. Should be this week or the next.

If you do get it working to the point where others might find it useful, it
would fit right in in the add on page of the wiki.

http://wiki.bacula.org/doku.php?id=3rd_party_addons

--
Frank Sweetser fs at wpi.edu | For every problem, there is a solution that
WPI Network Engineer | is simple, elegant, and wrong. - HL Mencken
GPG fingerprint = 6174 1257 129E 0D21 D8D4 E8A3 8E39 29E3 E2E8 8CEC

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB