Re: [Bacula-users] Problems with dbcheck

2010-07-15 Thread Alex Huth
On Tue, Jul 13, 2010 at 08:53:55AM +0700, Ken wrote:
> 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
> 
I have solved the problems:

1. The permissions on the configs are wrong, must be set to bacula
2. When you use mysql, you have to change the string in
make_catalog_backup.pl from dbcheck to dbcheck.mysql
3. In the bacula-dir.conf execute the make_catalog_backup.pl as user
bacula

Hope that helps, for everyone using the OpenSuSE/SLES11 rpm!

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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problems with dbcheck

2010-07-14 Thread Alex Huth
On Tue, Jul 13, 2010 at 08:53:55AM +0700, Ken wrote:
> 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
> 
> 
Even when i run it with su it doesn´t work. It not the only problem.
dbcheck tells me that -B is a unknown option. I have testetd the same
configuration on FreeBSD and it works there.
I have used the RPM in the SLES 11 tree of OpenSuSE. Anyone else using
this RPM´s or have you compiled the source?

-- 
Mit freundlichen Grüßen
 
Alex Huth
 


TMR - Telekommunikation
Mittleres Rurgebiet GmbH
Brenscheder str. 62
D-44799 Bochum
Tel.:  +49 0234 960 3843
Mobil: +49 163 5960638
a.h...@tmr.net
http://www.tmr.net


--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problems with dbcheck

2010-07-13 Thread Martin Simmons
> On Tue, 13 Jul 2010 08:53:55 +0700, Ken  said:
> 
> 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"

No, that is wrong for make_catalog_backup.pl.  The old shell script
make_catalog_backup takes those two arguments, but the new perl script
make_catalog_backup.pl takes a single argument, which is the catalog name.

The problem might be caused by permission errors.  Check that dbcheck can be
run by the userid that runs the Director (look in
/usr/lib64/bacula/make_catalog_backup.pl for the arguments to pass to dbcheck
and run it with sudo or su).

__Martin

--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problems with dbcheck

2010-07-12 Thread Ken
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.h...@tmr.net]
> Sent: Monday, 12 July 2010 6:20 PM
> To: bacula-users@lists.sourceforge.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 
>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@lists.sourceforge.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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Problems with dbcheck

2010-07-12 Thread Alex Huth
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 
   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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users