From: Joerg Jaspert Date: Sat, 14 Jun 2008 15:02:25 +0000 (+0200) Subject: Compress all pgsql backups X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=5f76aa22d7e4b23e6299a7edd062be1263371ef1;p=dak.git Compress all pgsql backups --- diff --git a/ChangeLog b/ChangeLog index 620e8c0f..429835b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-06-14 Joerg Jaspert + + * config/debian/cron.dinstall (POSTDUMP): Compress all + uncompressed psql backups + 2008-06-08 Joerg Jaspert * dak/process_unchecked.py (check_urgency): Lowercase urgency diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index 6256e651..95f5427b 100755 --- a/config/debian/cron.dinstall +++ b/config/debian/cron.dinstall @@ -247,14 +247,14 @@ apt-ftparchive -q clean apt.conf ts -# Compress psql backups older than a week, but no more than 20 of them +# Compress psql backups echo "Compress old psql backups" (cd $base/backup/ - find -maxdepth 1 -mindepth 1 -type f -name 'dump_*' \! -name '*.bz2' \! -name '*.gz' -mtime +7 | - sort | head -n20 | while read dumpname; do - echo "Compressing $dumpname" - bzip2 -9 "$dumpname" - done + find -maxdepth 1 -mindepth 1 -type f -name 'dump_*' \! -name '*.bz2' \! -name '*.gz' | + while read dumpname; do + echo "Compressing $dumpname" + bzip2 -9 "$dumpname" + done ) ts