Hi,

13.11.2007 12:54,, Cedric Devillers wrote::
> Hello,
> 
> I have a little problem with one of our bacula installation.
> 
> Let me explain the setup first.
> 
> There is two server, the first has the data and the storage daemon
> (meia). The second is the director/DB server (lucita). There is alsa two
> client only servers (hr-accentv2 a windows client and darla).

Ok. The catalog database is on lucita, right?

> All the jobs are running fine, except the Catalog Backup. The strange
> thing here is that i have nothing in logs about it. If i run it
> manually, it is fine.
> 
> Director ans storage version : 1.38.11 (can't upgrade right now).

You should plan for that, though :-)

> I suppose i have messed something with scheduling or concurency, but i
> can't find what.

I hope I can...

...
> Here is the relevant part of my config :
> 
> ### Jobs definitions :
> 
> JobDefs {
>   Name = "DefaultJob"
>   Type = Backup
>   Level = Incremental
>   Client = lucita-fd
>   FileSet = "Full Set"
>   Schedule = "WeeklyCycle"
>   Storage = meia-sd
>   Messages = Standard
>   Pool = Default
>   Priority = 10
> }
> 
> JobDefs {
>   Name = "Daily"
>   Type = Backup
>   Level = Differential
>   Client = meia-fd
>   FileSet = "Full Set"
>   Schedule = "DailyCycle"
>   Storage = meia-sd
>   Messages = Standard
>   Pool = Default    #overwrited by schedule config, but needed to start
> bacula
>   Max Wait Time = 1 hours
>   Max Start Delay = 4 hours
>   RunBeforeJob = "etc/bacula/before.sh"
>   Priority = 10
> }
> 
> JobDefs {
>   Name = "Weekly"
>   Type = Backup
>   Level = Full
>   Client = meia-fd
>   FileSet = "Full Set"
>   Schedule = "WeeklyCycle"
>   Storage = meia-sd
>   Messages = Standard
>   Pool = Default        #overwrited by schedule config, but needed to
> start bacula
>   Max Wait Time = 1 hours
>   Max Start Delay = 4 hours
>   RunBeforeJob = "etc/bacula/before.sh"
>   Priority = 10
> }
> 
> 
> 
> Job {
>   Name = "Daily-meia"
>   JobDefs = "Daily"
>   Write Bootstrap = "/var/bacula/incremental.bsr"
> }
> 
> Job {
>   Name = "Weekly-meia"
>   JobDefs = "Weekly"
>   Write Bootstrap = "/var/bacula/full.bsr"
> }
> 
> Job {
>   Name = "DARLABackup"
>   JobDefs = "Weekly"
>   Client = darla-fd
>   FileSet="DARLA"
>   Schedule = "DARLACycle"
>   Max Wait Time = 1 hours
>   Max Start Delay = 4 hours
>   RunBeforeJob = "/etc/bacula/before.sh"
>   Write Bootstrap = "/var/bacula/darla.bsr"
> }
> 
> 
> Job {
>   Name = "HRBackup"
>   Client = "hr-accentv2-fd"
>   JobDefs = "Daily"
>   Level = Full
>   FileSet = "HRSet"
>   Schedule = "HRSchedule"
>   Max Wait Time = 1 hours
>   Max Start Delay = 4 hours
>   Write Bootstrap = "/var/bacula/hraccent.bsr"
>   Priority = 11                   # run after main backup
> }
> 
> #
> # Backup the catalog database (after the nightly save)
> Job {
>   Name = "BackupCatalog"
>   JobDefs = "Weekly"
>   Level = Full
>   FileSet="Catalog"
>   Client = lucita-fd

Ok. This is looking right.

>   Schedule = "WeeklyCycleAfterBackup"
>   # This creates an ASCII copy of the catalog
>   RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup bacula bacula
> Ya2AhGho"
>   RunBeforeJob = "/etc/bacula/before.sh"
>   # This deletes the copy of the catalog
>   RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
>   RunAfterJob = "/etc/bacula/after.sh"
>   RunAfterJob = "ssh -i /etc/bacula/Bacula_key [EMAIL PROTECTED]"

I *believe* that 1.38 could only handle one Run After Job and Run 
Before Job option per job. See below how to verify this.

>   Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr"
>   Priority = 11                   # run after main backup
> }

In bconsole, use the command "show jobs=BackupCatalog". Search for the 
lines with the Run before/after Job commands.

If you only see one each, you'll have to put the commands you need to 
execute into one script, and then reference that script.

By the way: If you posted the real password to the catalog above 
you'll want to change that soon :-)

Hope that helps,

Arno


-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to