X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.dinstall;h=95f5427b944bf11fadb8a71dbee0a6a8c355f950;hb=13a95d7bacc3748f17ecefbef2342a2276f0b122;hp=6256e651f4596a07c029b83b4c9d7733d38cfc9f;hpb=da2158236790739e5a39789cf5eb9360f599b302;p=dak.git 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