Sorry I forgot to add the error log:
13-Jan 14:51 babar-dir JobId 1651: shell command: run BeforeJob "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
13-Jan 14:51 babar-dir JobId 1651: BeforeJob: sh: cannot create /var/lib/bacula/bacula.sql: Permission denied
13-Jan 14:51 babar-dir JobId 1651: Error: Runscript: BeforeJob returned non-zero status=2. ERR=Child exited with code 2
13-Jan 14:51 babar-dir JobId 1651: Error: Bacula babar-dir 5.0.1 (24Feb10): 13-Jan-2012 14:51:00
Build OS: x86_64-pc-linux-gnu ubuntu 10.04
JobId: 1651
Job: BackupCatalog.2012-01-13_14.50.58_30
Backup Level: Full
Client: "babar-fd" 5.0.1 (24Feb10) x86_64-pc-linux-gnu,ubuntu,10.04
FileSet: "Catalog" 2011-02-03 01:10:00
Pool: "File" (From Job resource)
Catalog: "MyCatalog" (From Client resource)
Storage: "File" (From Job resource)
Scheduled time: 13-Jan-2012 14:50:56
Start time: 13-Jan-2012 14:51:00
End time: 13-Jan-2012 14:51:00
Elapsed time: 0 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
Accurate: no
Volume name(s):
Volume Session Id: 0
Volume Session Time: 0
Last Volume Bytes: 0 (0 B)
Non-fatal FD errors: 1
SD Errors: 0
FD termination status:
SD termination status:
Termination: *** Backup Error ***
[b]
[/b]
From: honia2002 < at > hotmail.com
To: drescherjm < at > gmail.com
Date: Fri, 13 Jan 2012 13:12:38 -0500
CC: bacula-users < at > lists.sourceforge.net
Subject: Re: [Bacula-users] BackupCatalog failes
.ExternalClass .ecxhmmessage P {padding:0px;} .ExternalClass body.ecxhmmessage {font-size:10pt;font-family:Tahoma;} I am logged in with user honia then su to root. Sorry I didn't understand what you mean, how should I check for that user info?
This is the full configuration I found in bacula-dir.conf
Job {
Name = "BackupCatalog"
JobDefs = "DefaultJob"
Level = Full
FileSet="Catalog"
Schedule = "WeeklyCycleAfterBackup"
# This creates an ASCII copy of the catalog
# Arguments to make_catalog_backup.pl are:
# make_catalog_backup.pl <catalog-name>
RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
# This deletes the copy of the catalog
RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
Write Bootstrap = "/var/lib/bacula/%n.bsr"
Priority = 11 # run after main backup
}
[b]
[/b]
Date: Fri, 13 Jan 2012 11:49:47 -0500
Subject: Re: [Bacula-users] BackupCatalog failes
From: drescherjm < at > gmail.com
To: honia2002 < at > hotmail.com
CC: bacula-users < at > lists.sourceforge.net
I use Bacula to backup 5 servers. One of the server's called applecrisps is
no longer in service but I haven't deleted it from the backup process yet.
For the past weeks, I've noticed the BackupCatalog fails and not sure how I
can find out what is wrong here.
1650 Full 0 0 Error 12-Jan-12 21:55 BackupCatalog
The backup runs overnight and backs up three existing machines with no
problem, I have set up everything to start at 20:05 and all three will be
backed up just fine in less that 5 minutes. Then comes the mail server which
takes until 5 AM. Then the backup for that non-existing server will start
and since it doesn't exist, it fails.
The problem is, in the morning when I get to the office, I notice the mail
server is not accessible until 8:15 AM although Bacula record shows it
finished at 5 AM. But if I run the command disable in bconsole and type
the mail server job number let's say at 7 AM, the mail server will be up in
about 15 minutes after that.
Can you please help me figure out what is wrong here? I can post any log or
config file here.
In the other thread you created on the same subject it did not appear
that there is anything wrong with your configuration.
However you first need to solve the permission problem. See what user
the bacula-fd on the machine with the catalog on it is running at.
Then login or su to that user and run the script directly.
John
------------------------------------------------------------------------------ RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________ Bacula-users mailing list Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users