Re: [Bacula-users] Do I have to update /etc/bacula/bacula-dir.conf everytime I add a new client, even except ip everything is same, btw is there some sort of template new client could follow?
2012-12-18 03:14:09
Le 18/12/2012 08:24, Zhenkai Jiang a écrit :
>
> just curious how to make adding new client work to be automated
> instead of updating conf file manually
Hello,
I don't like to modify bacula-dir.conf.
I added this line in bacula-dir.conf to manage clients easily:
@|"sh -c 'for f in /etc/bacula/clients/*/*.conf; do echo @${f}; done'"
(it's documented into bacula manual)
I created a template with these 2 files:
root@server:/etc/bacula/clients/dev-fd# ll
-rw-r--r-- 1 root root 332 20 juin 2011 client.conf
-rw-r--r-- 1 root root 205 2 juin 2011 jobs.conf
After these two files have been created, I just have to issue a reload
into bconsole and that's all !
It's ONE way. You can create your own.
HTH.
Jerome Blion.
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|