Re: [Bacula-users] Testing Bacula configuration files
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 21 | grep bacula-dir.conf open(/etc/bacula/bacula-dir.conf, O_RDONLY) = 3 $ $ truss bacula-dir -t -c ./bacula-dir.conf 21 | 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Testing Bacula configuration files
On Wed, 01 Feb 2012 13:28:52 + (GMT) Joe Nyland joenyl...@me.com wrote: 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! I've just tried # cat /etc/bacula/bacula-dir.conf /tmp/foo.conf (mangle /tmp/foo.conf) # /usr/sbin/bacula-dir -t /tmp/foo.conf and it loudly fails as expected with Bacula 5.0.2 as shipped in Debian. -- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Testing Bacula configuration files
On 01 Feb, 2012,at 01:57 PM, Christian Manal moen...@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.confNothing 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 21 | grep bacula-dir.conf open("/etc/bacula/bacula-dir.conf", O_RDONLY) = 3 $ $ truss bacula-dir -t -c ./bacula-dir.conf 21 | 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-usersChristian,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.confAnd 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-- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users