Bacula-users

Re: [Bacula-users] Adding a client remotely

2014-12-19 19:30:46
Subject: Re: [Bacula-users] Adding a client remotely
From: Roberto Leibman <roberto AT leibman DOT net>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 19 Dec 2014 16:24:31 -0800
ok, so here's what I have so far:

The director is set to read files from /etc/bacula/conf.d  (see 13.2.3 in the latest bacula manual)
The client creates a special conf file.
The client uses scp to copy that file to /etc/bacula/conf.d in the director

So far this works ok, now the problem is how do I tell the director to reload?

Well, to do that, I just set up incron! incron listens to changes to the cond.d directory, and calls /sbin/service bacula-dir reload when it detects a changed file there.

I hope all this helps someone.

Roberto




On 12/19/2014 10:24 AM, Roberto Leibman wrote:

On 12/17/2014 12:59 PM, Roberto Leibman wrote:
I'm not sure I get what you're saying... the bacula server is not managed by chef, there's only one of those. It's my clients that are managed by chef.

If I understand what you're suggesting:

If client creates a config file. This file is somehow put on the bacula server. The server then somehow adds this file to the configuration.

There's no way to tell the director to add a client through bconsole?


On 12/17/2014 12:51 PM, Romeo Theriault wrote:
If you're using chef I'd suggest splitting out each of your client config files into their own conf file and use chef templates to create them. Then have a cron script check if there are any new/changed conf files and reload the director config if their are. This is what I do.

On Wed, Dec 17, 2014 at 10:29 AM, Roberto Leibman <roberto AT leibman DOT net> wrote:
I was able to successfully install bacula. Now the next step.

I use chef to spin up various systems on aws, I need to back up each of
these systems. I am able to manually go to the bacula box and add my
clients.

Is there a way to programatically (scripts, bconsole, whatever) register
a client on the bacula box? Basically add a client to bacula-dir.conf
and schedule the necessary jobs.

Thanks for your answers!

Roberto Leibman

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users



------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>