Re: [Bug 207527] Re: Backup of Bacula's MySQL catalog fails

2008-04-02 Thread Stuart Griffith
Actually, I didn't insert the username and password. When I did the
initial install of the Bacula packages a dialog came up asking for that
information. Since I didn't enter the values directly into the file I'm
assuming that whatever put up that dialog did. It's possible that I
clicked right through the question asking for the DB name.

I'd like to take advantage of this ongoing conversation to say that,
even though there have been a couple minor rocks in the road, I was
really happy to see the Bacula packages in the Ubuntu repository, and
that they were the current versions. I have been using Bacula for a few
years and it was nice to be able to just click on the packages and port
over my configuration.

Stuart

On Wed, 2008-04-02 at 05:44 +, Ante Karamatić wrote:
 On Wed, 02 Apr 2008 01:18:49 -
 Stuart Griffith [EMAIL PROTECTED] wrote:
 
  I didn't see anywhere that indicated that I needed to change the
  RunBeforeJob. This is not something I have had to do before with
  Bacula.
 
 Maybe you don't remember, but you had to insert username and password
 of a DB user:
 
 RunBeforeJob = /etc/bacula/scripts/make_catalog_backup -uusername
 -ppassword
 
 Anyway, in next upload, I'll add a comment about what's needed to make
 it functional.


-- 
Backup of Bacula's MySQL catalog fails
https://bugs.launchpad.net/bugs/207527
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 207527] Re: Backup of Bacula's MySQL catalog fails

2008-04-01 Thread Stuart Griffith
Thank you for clearing these up.

I didn't see anywhere that indicated that I needed to change the
RunBeforeJob. This is not something I have had to do before with Bacula.

Stuart

On Tue, 2008-04-01 at 15:12 +, Ante Karamatić wrote:
 * In the make_catalog_backup_awk script there is an if statement, if
 (catname == cat1 || catname == cat2 || catname == cat3 || catname ==
 cat4) that guards the creation of .my.cnf and execution of mysqldump.
 On my system cat1 had the value CatalogName and catname had the
 value MyCatalog so the configuration file was never created and
 mysqldump never executed. -- Commented out the if statement.
 
 You should replace CatalogName with the name of the catalog in your
 configuration, which is, if I understand you correctly, MyCatalog. You
 have to configure RunBeforeJob correctly, before you use it.
 
 RunBeforeJob runs as 'bacula' user. Home of that user is
 /var/lib/bacula. mysql client reads ~/.my.cnf, which in case of bacula
 user is /var/lib/bacula. If you run it as root, it would appear that it
 doesn't work. Beside that, you'll have problems with root-owned files in
 /var/lib/bacula.


-- 
Backup of Bacula's MySQL catalog fails
https://bugs.launchpad.net/bugs/207527
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 207527] Re: Backup of Bacula's MySQL catalog fails

2008-04-01 Thread Ante Karamatić
On Wed, 02 Apr 2008 01:18:49 -
Stuart Griffith [EMAIL PROTECTED] wrote:

 I didn't see anywhere that indicated that I needed to change the
 RunBeforeJob. This is not something I have had to do before with
 Bacula.

Maybe you don't remember, but you had to insert username and password
of a DB user:

RunBeforeJob = /etc/bacula/scripts/make_catalog_backup -uusername
-ppassword

Anyway, in next upload, I'll add a comment about what's needed to make
it functional.

-- 
Backup of Bacula's MySQL catalog fails
https://bugs.launchpad.net/bugs/207527
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs