Package: backupninja
Version: 0.9.3-2
Severity: normal
Tags: patch

Running the mysql handler with "user = root" and "sqldump = yes" and
mysql credentials in /root/.my.cnf fails with:

  boxer:~# backupninja -n -d --run /etc/backup.d/50-boxer.mysql
  Info: >>>> starting action /etc/backup.d/50-boxer.mysql (because of --now)
  Debug: yes
  Debug: User home set to: /root
  Debug: using --defaults-file=/.my.cnf
  [..]
  Info: Initializing SQL dump method
  Could not open required defaults file: /.my.cnf
  Fatal error in defaults handling. Program aborted
  Fatal: Authentication problem, maybe user/password is wrong
  Fatal: <<<< finished action /etc/backup.d/50-boxer.mysql: FAILED

Looks like there might be a $vuserhome vs. $userhome typo in
/usr/share/backupninja/mysql .  The attached patch fixes the problem
for me.

--Brad


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'oldstable'), (500, 'unstable'), (500, 
'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-20050918-686-skas3-v8.2
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages backupninja depends on:
ii  bash                      3.1-1          The GNU Bourne Again SHell
ii  dialog                    1.0-20060101-1 Displays user-friendly dialog boxe
ii  gawk                      1:3.1.5-1      GNU awk, a pattern scanning and pr
ii  mawk                      1.3.3-11       a pattern scanning and text proces

backupninja recommends no packages.

-- no debconf information
--- /usr/share/backupninja/mysql.orig   2006-02-02 12:44:53.000000000 -0500
+++ /usr/share/backupninja/mysql        2006-02-02 12:41:41.000000000 -0500
@@ -160,7 +160,7 @@
        
        debug "User home set to: $userhome"
        [ -f $userhome/.my.cnf ] || fatal "Can't find config file in 
$userhome/.my.cnf"
-       defaultsfile="--defaults-file=$vuserhome/.my.cnf"
+       defaultsfile="--defaults-file=$userhome/.my.cnf"
        debug "using $defaultsfile"
 fi
 

Reply via email to