From 5f76aa22d7e4b23e6299a7edd062be1263371ef1 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sat, 14 Jun 2008 17:02:25 +0200 Subject: [PATCH] Compress all pgsql backups --- ChangeLog | 5 +++++ config/debian/cron.dinstall | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) 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 -- 2.39.5