Re: [Bacula-users] Problems with dbcheck
2010-07-12 21:57:24
Hello Alex,
If you read make_catalog_backup.pl the accepted parameters are $1 dbname,
and $2 dbuser, so I would suggest you try
RunBeforeJob = "/usr/lib64/bacula/make_catalog_backup.pl bacula bacula"
Hope that helps.
Ken
> -----Original Message-----
> From: Alex Huth [mailto:a.huth AT tmr DOT net]
> Sent: Monday, 12 July 2010 6:20 PM
> To: bacula-users AT lists.sourceforge DOT net
> Subject: [Bacula-users] Problems with dbcheck
>
> Hello!
>
> I am using bacula on SLES 11 and getting errors doing backup of the
> catalog:
>
> 12-Jul 13:02 dfs.ewmr.base-dir JobId 1: shell command: run BeforeJob
> "/usr/lib64/bacula/make_catalog_backup.pl MyCatalog"
> 12-Jul 13:02 dfs.ewmr.base-dir JobId 1: BeforeJob: Can't find your
> catalog (MyCatalog) in director configuration
> 12-Jul 13:02 dfs.ewmr.base-dir JobId 1: Error: Runscript: BeforeJob
> returned non-zero status=1. ERR=Child exited with code 1
>
> -----------------
>
> I am using the default definitions of catalog in the conf:
>
> # Backup the catalog database (after the nightly save)
> 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 = "/usr/lib64/bacula/make_catalog_backup.pl MyCatalog"
> # This deletes the copy of the catalog
> RunAfterJob = "/usr/lib64/bacula/delete_catalog_backup"
> Write Bootstrap = "/var/lib/bacula/working/%n.bsr"
> Priority = 11 # run after main backup
> }
> ------------------------------
>
> # Generic catalog service
> Catalog {
> Name = MyCatalog
> # Uncomment the following line if you want the dbi driver
> # dbdriver = "dbi:sqlite3"; dbaddress = 127.0.0.1; dbport =
> dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
> }
>
> Can someone help with that error?
>
> Greetings
>
> Alex
>
> -----------------------------------------------------------------------
> -------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|