Bacula-users

Re: [Bacula-users] Including configuration files breaks backup

2016-02-09 09:49:14
Subject: Re: [Bacula-users] Including configuration files breaks backup
From: Heitor Faria <heitor AT bacula.com DOT br>
To: Raymond Burns <rburnsj AT gmail DOT com>
Date: Tue, 9 Feb 2016 12:46:43 -0200 (BRST)
The default dbcheck in /usr/sbin/dbcheck does not work properly when including additional config files.
# /sbin/dbcheck -B -c /opt/bacula/conf/bacula-dir.conf

dbcheck: ERROR TERMINATION at parse_conf.c:1000
Config error: End of conf file reached with unclosed resource.
            : line 111, col 1 of file /opt/bacula/conf/bacula-dir.conf


Line 110 of /opt/bacula/conf/bacula-dir.conf:
        @/opt/bacula/conf.d/SCHEDULE.conf

Whenever you use "@FILENAME" at the end of the director configuration file, the dbcheck is an error. Cannot use the default make_catalog_backup.pl
How else can I backup the MySQL database?
Hello, Raymond: dbcheck and make_catalog scripts are totally different piece of software.
make_catalog_backup searches for the catalog name in order to fetch database connection information and be able to dump it. It's kind of unusual to have this information in another file (include) since the most common (by far) is having only one catalog resource per Director configuration.
About dbcheck you can specify DB user and password as command arguments. E.g.: dbcheck -b /var/spool/bacula/ bacula root 123456
I tried to reproduce your error in Bacula 7.4 with a dummy include, but the command works even though. Perhaps you have a syntax error in your Bacula configuration.

Regards,
--
=======================================================================
Heitor Medrado de Faria  - LPIC-III | ITIL-F |  Bacula Systems Certified Administrator II
Próximas aulas telepresencial ao-vivo - 15 de fevereiro: http://www.bacula.com.br/agenda/
Ministro treinamento e implementação in-company Bacula: http://www.bacula.com.br/in-company/
Ou assista minhas videoaulas on-line: http://www.bacula.com.br/treinamento-bacula-ed/
Site: www.bacula.com.br | Facebook: heitor.faria
========================================================================

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
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>