From: Joerg Jaspert Date: Sat, 2 May 2009 20:47:39 +0000 (+0200) Subject: what a difference a small little innocent + can make X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=00af21607db13ac6e4976fd09fbe4e322f167dfe;p=dak.git what a difference a small little innocent + can make Signed-off-by: Joerg Jaspert --- diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index c239c09c..edd6f6c6 100755 --- a/config/debian/cron.dinstall +++ b/config/debian/cron.dinstall @@ -354,12 +354,12 @@ function compress() { cd $base/backup/ find -maxdepth 1 -mindepth 1 -type f -name 'dump_pre_*' -mtime +2 -print0 | xargs -0 --no-run-if-empty rm - find -maxdepth 1 -mindepth 1 -type f -name 'dump_*' \! -name '*.bz2' \! -name '*.gz' -mmin 720 | + find -maxdepth 1 -mindepth 1 -type f -name 'dump_*' \! -name '*.bz2' \! -name '*.gz' -mmin +720 | while read dumpname; do echo "Compressing $dumpname" bzip2 -9v "$dumpname" done - find -maxdepth 1 -mindepth 1 -type f -name "dumpall_*" \! -name '*.bz2' \! -name '*.gz' -mmin 720 | + find -maxdepth 1 -mindepth 1 -type f -name "dumpall_*" \! -name '*.bz2' \! -name '*.gz' -mmin +720 | while read dumpname; do echo "Compressing $dumpname" bzip2 -9v "$dumpname"