On Thursday 10 May 2007 14:30, Jean-François Leroux wrote: > Hi, > I've tried running the 'stock' BeforeBackup script on Debian Etch (bacula > database backup with a call to mysqldump -u<user> -p<password>). > There was a problem at first with variables $1 was $0 and $2 was $1, and so > on. > I corrected that so that I got the correct variables in the correct fields
The only change I made to my stock Debian Etch bacula-dir.conf line which calls the make_catalog_backup script was to change the RunBeforeJob line from:- RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup -u<username> -p<password>" to:- RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup bacula bacula passhere" with the last of those being the password you set for the bacula user on the bacula mysql database. I found this to be in the file:- /etc/dbconfig-common/bacula-director-mysql.conf contained in quotes after the line beginning with dbc_dbpass= assuming you used dbconfig to set this up during bacula install The rights on my unchanged make_catalog_backup script are -rwxr-xr-x 1 root root 1376 2007-02-22 19:47 make_catalog_backup > BUT I get now another error : > Access denied, even though the script runs smoothly from the command line Which user does the script run fine under from the command line, as the director (which is the program I think runs this script) is run as the bacula user on etch with stock packages (my versions are 1.38.11-8). > (eg not called from DeforeBackup). > Did somebody meet the same issue ? Although I am still working out other parts of bacula to my satisfaction this part now works Just fine. Not really an answer I'm afraid but thought I'd share my findings on this thus far. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users