Bacula-users

Re: [Bacula-users] HEADS UP: FreeBSD changes...

2013-01-10 05:22:19
Subject: Re: [Bacula-users] HEADS UP: FreeBSD changes...
From: Andrea Venturoli <ml AT netfence DOT it>
To: Dan Langille <dan AT langille DOT org>
Date: Thu, 10 Jan 2013 11:19:35 +0100
On 01/10/13 01:40, Dan Langille wrote:

> Oh, it does that. I did not know.

I though I had already reported this, but I might be misremembering... :)



> Question:
>
> What will happen upon start up if that file does not exist?

Nothing strange.

Everything works fine until you issue the "query" command in bconsole: 
then you'll get:

> *query
> Automatically selected Catalog: MyCatalog
> Using Catalog "MyCatalog"
> Could not open /usr/local/share/bacula/query.sql: ERR=No such file or 
> directory

This, IMHO, is no worse than what it currently does:

> *query
> Automatically selected Catalog: MyCatalog
> Using Catalog "MyCatalog"
> Automatically selected : The default file is empty, see 
> <bacula-source>/examples/sample-query.sql for samples
> +-----------------------------------------------------------+
> | info                                                      |
> +-----------------------------------------------------------+
> | See <bacula-source>/examples/sample-query.sql for samples |
> +-----------------------------------------------------------+



I think there are two kinds of ports in the tree:
_ those who install a .sample file and no right file;
_ those who install a .sample file and copy it onto the right file in 
case it does not already exist.

Both solutions seem fine to me, while overwriting it is an anomaly.



  bye & Thanks
        av.

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users