Hello community, here is the log from the commit of package cyrus-imapd checked in at Tue Jan 29 01:35:27 CET 2008. -------- --- cyrus-imapd/cyrus-imapd.changes 2007-10-30 13:11:47.000000000 +0100 +++ /mounts/work_src_done/STABLE/cyrus-imapd/cyrus-imapd.changes 2008-01-28 17:13:22.000000000 +0100 @@ -1,0 +2,6 @@ +Mon Jan 28 17:11:47 CET 2008 - rhafer@suse.de + +- limit the number of text backups of the mailboxes database + (bnc#355914) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cyrus-imapd.spec ++++++ ++++ 689 lines (skipped) ++++ between cyrus-imapd/cyrus-imapd.spec ++++ and /mounts/work_src_done/STABLE/cyrus-imapd/cyrus-imapd.spec ++++++ cyrus-imapd-rc.tar.gz ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/SuSE/cron.daily.cyrus new/SuSE/cron.daily.cyrus --- old/SuSE/cron.daily.cyrus 2007-10-30 11:23:58.000000000 +0100 +++ new/SuSE/cron.daily.cyrus 2008-01-28 17:11:09.000000000 +0100 @@ -3,11 +3,12 @@ # Copyright (c) 2003 SuSE Linux AG. Nuernberg, Germany. # BACKUPDIR=/var/lib/imap/backup - +BACKUPBASENAME=mailboxes.txt +NUM_BACKUPS_TO_KEEP=10 backup_name() { suffix=$(date +%Y-%m-%d) serial=00 - backupfile="$BACKUPDIR/mailboxes.txt.$suffix.$serial.gz" + backupfile="$BACKUPDIR/$BACKUPBASENAME.$suffix.$serial.gz" while [ -f $backupfile ]; do serial=$(printf "%02d" $(expr $serial + 1)) backupfile="$BACKUPDIR/mailboxes.txt.$suffix.$serial.gz" @@ -15,6 +16,9 @@ echo $backupfile } +remove_old() { + rm -f -- `ls -t -- $BACKUPDIR/$BACKUPBASENAME.*.gz | sed -e 1,${NUM_BACKUPS_TO_KEEP}d` +} # ---------------------- MAIN ------------------- test -d $BACKUPDIR || mkdir -m 700 $BACKUPDIR @@ -25,3 +29,4 @@ su - cyrus -c 'ctl_mboxlist -d' | gzip -9 -c > $bakfile chown cyrus.mail $bakfile chmod 640 $bakfile +remove_old ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org