Re: [Bacula-users] Cannot stat bacula.sql
2008-07-08 04:35:57
Hi,
I encountered that behaviour as well with a build of 2.4.1b1/2 on
CentOS 5.2. In my case it was due to the fact, that the scripts used
for creating / deleting the database dump are created by "make install"
with root:root. I changed this to bacula:disk and everything worked.
The same changes have to be made to the mtx-changer script and at least
one other script I can't remember right now.
I might check later today.
I am not into software development but wouldn't it be possible to have
"make install" set the correct file permissions?
All the best,
Nils
Arno Lehmann schrieb:
Hi,
08.07.2008 06:13, Kendall Shaw wrote:
My job for backing up the catalog fails with:
Could not stat /var/bacula/bacula.sql: ERR=No such file or directory
If I run the RunBeforeJob command with the arguments it's given in the
job definition, it creates /var/bacula/bacula.sql.
Does the job report mention the run before job?
Do you have any idea what the problem could be?
Well, it would be worth checking what happens when you, as the bacula
user, execute '/usr/local/libexec/bacula/make_catalog_backup bacula
bacula'. Two likely reasons for that not to create the needed SQL dump
of the catalog are 1) wrong credetials to the database, i.e. you need
to specify the correct user and password, or 2) the dump goes to some
other place.
If the make_catalog_backup script runs without error messages, you
should have a look into that script and see where it puts the dump.
Arno
Job {
Name = asdf-catalog
Type = Backup
Level = Full
FileSet = asdf-catalog
Messages = Standard
Pool = asdf-pool
Client = asdf-fd
Schedule = daily-after-backup
# This creates an ASCII copy of the catalog
RunBeforeJob = "/usr/local/libexec/bacula/make_catalog_backup bacula
bacula"
# This deletes the copy of the catalog
RunAfterJob = "/usr/local/libexec/bacula/delete_catalog_backup"
Write Bootstrap = "/var/bacula/BackupCatalog.bsr"
Priority = 11 # run after main backup
}
Kendall
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
--
BackOfficeService
-
Beratung und Service für Ihre IT -
Anschrift:
Niederkastenholzer
Str. 40
53881
Euskirchen
|
Telefon:
+49
2255 953204
Fax:
+49
2255 953208
Mobil: +49
177 3397547
|
Bankverbindung:
Raiffeisenbank
Rheinbach Voreifel eG
Kto.
Nr. 340286014 (BLZ 370 696 27)
|
Online:
info@backofficeservice.biz
www.backofficeservice.biz
|
|
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|