Bug#572642: automysqlbackup: Fails to purge rotated weekly backups

2010-03-23 Thread Thomas Goirand
Hi,

Would you mind sponsoring the upload, as you sent some bug reports
against the package, which means you should be using it?

http://ftparchive.gplhost.com/debian/pool/lenny/main/a/automysqlbackup/automysqlbackup_2.5-6.dsc

Thomas



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#572642: automysqlbackup: Fails to purge rotated weekly backups

2010-03-05 Thread Gregor Hoffleit
Package: automysqlbackup
Version: 2.5-5
Severity: important
Tags: patch

automysqlbackup fails to purge the rotated weekly backups that are older
than 5 weeks, if you selected SEPDIR (Separate backup for each DB).

It's strange that nobody else noticed this problem yet.

The fix for the problem is a one-liner, see below.


Regards,
Gregor Hoffleit



--- /usr/sbin/automysqlbackup   2008-09-20 04:05:17.0 +0200
+++ /tmp/automysqlbackup2010-03-05 13:23:29.0 +0100
@@ -545,7 +545,7 @@
else
REMW=`expr $W - 5`
fi
-   eval rm -fv $BACKUPDIR/weekly/$DB_week.$REMW.* 
+   eval rm -fv $BACKUPDIR/weekly/$DB/${DB}_week.$REMW.* 
echo
dbdump $DB 
$BACKUPDIR/weekly/$DB/${DB}_week.$W.$DATE.sql
compression 
$BACKUPDIR/weekly/$DB/${DB}_week.$W.$DATE.sql



-- System Information:
Debian Release: squeeze/sid
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'proposed-updates'), (500, 'unstable'), 
(500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686-bigmem (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org