
Testing Bacula configuration files
On 01 Feb, 2012,at 01:57 PM, Christian Manal <moenoel < at > informatik.uni-bremen.de> wrote:
Am 01.02.2012 14:28, schrieb Joe Nyland:
Hello,
I've trying to setup a verify jobs for my Bacula system.
Before releasing the configuration to the production server, I would
like to simply verify the configuration file, to make sure I've not
messed some of the configuration up somewhere.
From the manual, I have run:
sudo bacula-dir -t -c bacula-dir.conf
Nothing was returned from the command, so I presume it's ok. Just to
make sure, I changed a few of the resources in the file, so that they
were definitely invalid. I then re-ran the command above, but still
nothing was returned...
Does anyone know why this would happen? I've not been able to find any
bugs logged on bugs.bacula.org along these lines, so I presume I'm doing
something wrong!
Kind regards,
Joe Nyland
Hi,
if you only give a filename, without a path (even a relative one),
bacula-dir will look for it in the default configuration directory. For
example from my director:
$ pwd
/tmp
$ truss bacula-dir -t -c bacula-dir.conf 2>&1 | grep bacula-dir.conf
open("/etc/bacula/bacula-dir.conf", O_RDONLY) = 3
$
$ truss bacula-dir -t -c ./bacula-dir.conf 2>&1 | grep bacula-dir.conf
open("./bacula-dir.conf", O_RDONLY) = 3
Assuming the file you want to test is in your working directory, this
might be your problem.
Regards,
Christian Manal
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net ([email]Bacula-users < at > lists.sourceforge.net[/email])
https://lists.sourceforge.net/lists/listinfo/bacula-users
Christian,
Many thanks for pointing this out for me. This appears to be the bit that I was missing!
I was indeed trying to test a file in my working directory. Tried it again with the following:
bacula-dir -t -c
./bacula-dir.conf
And all seems to be well - I get an error about an undefined fileset directive which I hadn't set, so now I know it's not ready to be released yet.
Thanks again,
Joe