Timo Neuvonen wrote:
> "Ralf Polakowski" <rpolakowski AT euc DOT de> kirjoitti viestissä
> news:4815CB81.9080805 AT euc DOT de...
>
>> when I want to save catalog I get the following error Message from
>> bacula-fd:
>>
>> Could not stat /var/bacula/working/bacula.sql: ERR=No such file or
>> directory
>>
>> The Export File bacula.sql is there in /var/bacula/working. Ready for
>> Backup.
>> A research in Google was negative. Is there anothere point which I don't
>> see.
>>
>
> This file is expected to be created by a run-before-job script of catalog
> backup job, and after running the job, the file is deleted by run-after-job
> script. So it is expected to exist only during catalog backup job -so it
> sounds odd if it exist otherwise.
>
> - the file will be big (depending on your database size), do you have
> sufficient disk space to create it?
Yes, 344 MB. The postgres dump from today was 17.1 MB
-rw-r----- 1 root wheel 17879074 Apr 29 01:31 bacula.sql
> - if you have just upgraded your system from a very old version, have a look
> to script mentioned above if it has changed and writes the file into another
> location, I think this change happened during the last year.
I have checked all location in the config files. All Ok
> - there was a version of bacula some time ago (2.2.x, maybe ...5) that had
> some bug with scripts... maybe the run-before- script was run too late or
> something like that, I don't remember exactly any more.
I have commented out run after script in the Job to see the dump will be
created. This Part works. We have installed Bacula 2.2.0 so think i will
make an upgrade to 2.2.8. I hope this makes it. When i checked that the
BackupCatalog Job write his Bootstrap file I can't find the bsr-file for
this Job.
Here the log from today:
29-Apr 01:30 backup-dir: BeforeJob: run command
"/etc/bacula/make_catalog_backup bacula bacula"
29-Apr 01:31 backup-dir: Start Backup JobId 239,
Job=BackupCatalog.2008-04-29_01.30.00
29-Apr 01:31 backup-dir: Created new Volume "Cat-0005" in catalog.
29-Apr 01:31 backup-dir: Using Device "FileStorage"
29-Apr 01:31 backup-sd: Labeled new Volume "Cat-0005" on device
"FileStorage" (/d400/bacula).
29-Apr 01:31 backup-sd: Wrote label to prelabeled Volume "Cat-0005" on
device "FileStorage" (/d400/bacula)
29-Apr 01:31 backup-dir: Max Volume jobs exceeded. Marking Volume
"Cat-0005" as Used.
29-Apr 01:31 backup-fd: Could not stat
/var/bacula/working/bacula.sql: ERR=No such file or directory
29-Apr 01:31 backup-sd: Job write elapsed time = 00:00:01, Transfer rate
= 0 bytes/second
29-Apr 01:31 backup-dir: Bacula backup-dir 2.2.0 (08Aug07): 29-Apr-2008
01:31:34
Build OS: i386-unknown-openbsd3.6 openbsd 3.6
JobId: 239
Job: BackupCatalog.2008-04-29_01.30.00
Backup Level: Full
Client: "zeus" 2.2.0 (08Aug07)
FileSet: "Catalog" 2007-08-27 23:10:00
Pool: "Catalog" (From Job FullPool override)
Storage: "File" (From Job resource)
Scheduled time: 29-Apr-2008 01:30:00
Start time: 29-Apr-2008 01:31:32
End time: 29-Apr-2008 01:31:34
Elapsed time: 2 secs
Priority: 11
FD Files Written: 0
SD Files Written: 0
FD Bytes Written: 0 (0 B)
SD Bytes Written: 0 (0 B)
Rate: 0.0 KB/s
Software Compression: None
VSS: no
Encryption: no
Volume name(s): Cat-0005
Volume Session Id: 9
Volume Session Time: 1208958092
Last Volume Bytes: 586 (586 B)
Non-fatal FD errors: 1
SD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Backup OK -- with warnings
Thanks for help
Ralf Polakowski
P.S.: For completion here the parts of the related config Files:
Job {
Name = "BackupCatalog"
#JobDefs = "DefaultJob"
Level = Full
Client = zeus
Storage = File
Type = Backup
Messages = Standard
FileSet="Catalog"
Pool = Default
Full Backup Pool = Catalog
Schedule = "WeeklyCycleAfterBackup"
# This creates an ASCII copy of the catalog
RunBeforeJob = "/etc/bacula/make_catalog_backup bacula bacula"
# This deletes the copy of the catalog
#RunAfterJob = "/etc/bacula/delete_catalog_backup"
Write Bootstrap = "/var/bacula/working/BackupCatalog.bsr"
Priority = 11 # run after main backup
}
Catalog {
Name = MyCatalog
dbname = bacula; user = bacula; password = ""
}
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = /var/bacula/working/bacula.sql
}
}
--
Ralf Polakowski, Systemadministrator
EUC Online Service GmbH Web http://www.euc.de
Taubengasse 9 Tel. +49 221 58007-24 Fax +49 221 58007-28
D-50676 Köln Geschäftsführer: Michael Heidel HRB Köln 32038
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|