Hello,

Le Vendredi 19 Février 2010 09:58:28, Philipp Storz a écrit :
> Hello,
> 
> I have the following Catalog configuration:
> 
> Catalog {
>   Name = MyCatalog
>   dbname = bacula; user = bacula; password = "XXXXXXX"
>   DB Address=10.20.240.141
>   DB Port=3306
> }
> 
> The dump of the catalog fails with this output:
> 
> 
> /usr/lib/bacula/make_catalog_backup.pl MyCatalog
> 
> Unknown suffix '%' used for variable 'port' (value '%args{db_port}')
> mysqldump: Error while setting value '%args{db_port}' to 'port'
> 
> I guess there is a problem finding the DB Port number.
> 
> the dbcheck command has the correct output:
> /usr/sbin/dbcheck -B -c /etc/bacula/bacula-dir.conf
> catalog=MyCatalog
> db_name=bacula
> db_driver=
> db_user=bacula
> db_password=passwort
> db_address=10.20.240.141
> db_port=3306
> db_socket=
> db_type=MySQL
> 
> 
> 
> Solution:
> 
> the problem lies in line 103 , where we have to change % to $
> 

yes nice catch, thanks

Bye
 
> --- /usr/lib/bacula/make_catalog_backup.pl      2010-02-19
> 09:57:36.000000000 +0100
> +++ /usr/lib/bacula/make_catalog_backup_fixed.pl        2010-02-19
> 09:57:29.000000000 +0100
> @@ -100,7 +100,7 @@
>  password=$args{db_password}
>  ";
>      if ($args{db_port}) {
> -        print MY "port=%args{db_port}\n";
> +        print MY "port=$args{db_port}\n";
>      }
> 
>      close(MY);
> 
> 
> 
> 
> best regards,
> 
> Philipp

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to