X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=cron.daily;h=9537aaaa3458ae04dde89059b887191235835f71;hb=4fdadb5a48f7ba6fa11f58759622dd8d51417fc4;hp=62511c0b441e1b7d455595510cb71743b10e587f;hpb=529b672cff736e8f81aa287e268f951329bf61ce;p=dak.git diff --git a/cron.daily b/cron.daily index 62511c0b..9537aaaa 100755 --- a/cron.daily +++ b/cron.daily @@ -35,6 +35,7 @@ pg_dump projectb > /org/ftp.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S) update-bugdoctxt update-mirrorlists +update-mailingliststxt ################################################################################ @@ -87,6 +88,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