X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.daily;h=b1af531237ff859bef62c8e0f4ffa073f125c0dc;hb=b6d163b9acb6a7c5ff29c741ebf12a2e9171d3b0;hp=5427002334cdc1fbd7426d9a4295f83cf0503c2a;hpb=f0cb58d0e179b2d90695a7856f8861ff76d91446;p=dak.git diff --git a/config/debian/cron.daily b/config/debian/cron.daily index 54270023..b1af5312 100755 --- a/config/debian/cron.daily +++ b/config/debian/cron.daily @@ -169,6 +169,8 @@ dak queue-report | mail -e -s "NEW and BYHAND on $(date +%D)" ftpmaster@ftp-mast # and one on crufty packages dak cruft-report | tee $webdir/cruft-report-daily.txt | mail -e -s "Debian archive cruft report for $(date +%D)" ftpmaster@ftp-master.debian.org +$scriptsdir/dm-monitor >$webdir/dm-uploaders.html + ################################################################################ # Run mirror-split @@ -179,7 +181,7 @@ dak cruft-report | tee $webdir/cruft-report-daily.txt | mail -e -s "Debian archi TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X) -ulimit -m 90000 -d 90000 -s 10000 -v 90000 +ulimit -m 90000 -d 90000 -s 10000 -v 200000 run-parts --report $base/scripts/distmnt @@ -199,4 +201,16 @@ TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X) cd $configdir apt-ftparchive -q clean apt.conf +TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X) + +# Compress psql backups older than a month, but no more than 20 of them + +(cd $base/backup/ + find -maxdepth 1 -mindepth 1 -type f -name 'dump_*' \! -name '*.bz2' \! -name '*.gz' -mtime +30 | + sort | head -n20 | while read dumpname; do + echo "Compressing $dumpname" + bzip2 -9 "$dumpname" + done +) + ################################################################################