Bacula-users

[Bacula-users] dbi?

2010-01-28 05:11:23
Subject: [Bacula-users] dbi?
From: Wolfram Schlich <lists AT wolfram.schlich DOT org>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 28 Jan 2010 11:07:04 +0100
Hi!

As bacula does support libdbi since 3.x, the configure script
has --with-dbi and --with-dbi-driver=(mysql|postgres|sqlite3).

When I want to build with dbi support, do I have to disable
any of the --with-mysql/--with-postgresql/--with-sqlite3
(making it --without-[...])?

How do I configure the director to use a dbi database?
It seems that...

        Catalog {
                Name = PostgreSQL
                DB Driver = "libdbi:postgres"
                DB Address = 127.0.0.1
                DB Port = 5432
                DB Name = "bacula"
                User = "bacula"
                Password = "secret"
        }

...does the trick, but the doc section "The Catalog Resource"
days nothing about it -- I had to look in the doc section
"libdbi Framework", it made me figure out the "DB Driver" part.
I think the catalog section should have a link to the dbi
section in the manual :)

Does --enable-batch-insert affect dbi builds of Bacula?
It seems so, according to the paragraph
"The following drivers have been tested:".

Also, the section says:

        Currently the drivers supported by Bacula are: postgresql,
        mysql, sqlite, sqlite3; these are the names that may be
        added to string "dbi:".

I only made PostgreSQL work by using "postgres" as the string
after "libdbi:", not "postgresql". Where's the error, in the
docs or the program? :) As sqlite<3 support has been dropped
from 5.0.0, it might be a good idea to also remove it from
the dbi section, if it's desired.

Thanks!
-- 
Regards,
Wolfram Schlich <wschlich AT gentoo DOT org>
Gentoo Linux * http://dev.gentoo.org/~wschlich/

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
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>