X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=cron.daily;h=3cfb8e8f50d2acecaed159e48c2c23391fbd86e3;hb=e0b8c1b28a727fa524933497011a7aa6039e8561;hp=61f74db985dc27fea639c046ea5dd0f3686297a4;hpb=2e38e1b4845d2404e76bd9bb993a7025a1ed693c;p=dak.git diff --git a/cron.daily b/cron.daily index 61f74db9..3cfb8e8f 100755 --- a/cron.daily +++ b/cron.daily @@ -46,6 +46,8 @@ katie -pak *.changes | direport | tee REPORT | \ chgrp debadmin REPORT chmod 664 REPORT +catherine + cd $masterdir symlinks -d -r $ftpdir @@ -88,6 +90,11 @@ pg_dump projectb > /org/ftp.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S) ################################################################################ +# Vacuum the database +echo "VACUUM; VACUUM ANALYZE;" | psql projectb 2>&1 | grep -v "^NOTICE: Skipping.*only table owner can VACUUM it$" + +################################################################################ + ulimit -m 90000 -d 90000 -s 10000 -v 90000 run-parts --report /org/ftp.debian.org/scripts/distmnt