3 # Executed daily via cron, out of troup's crontab.
6 export SCRIPTVARS=/org/ftp.debian.org/katie/vars
9 ################################################################################
11 echo Archive maintenance started at $(date +%X)
13 NOTICE="$ftpdir/Archive_Maintenance_In_Progress"
22 Packages are currently being installed and indices rebuilt.
23 Maintenance is automatic, starting at 13:52 US Central time, and
24 ending at about 15:30. This file is then removed.
26 You should not mirror the archive during this period.
29 ################################################################################
31 echo "Creating pre-daily-cron-job backup of projectb database..."
32 pg_dump projectb > /org/ftp.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
34 ################################################################################
38 update-mailingliststxt
40 ################################################################################
44 katie -pa *.changes | tee REPORT | \
45 mail -s "Install for $(date +%D)" ftpmaster@ftp-master.debian.org
50 symlinks -d -r $ftpdir
55 # Generate override files
59 rm -f override.potato.all3 override.sid.all3
60 for i in main contrib non-free; do cat override.potato.$i >> override.potato.all3; done
61 for i in main contrib non-free main.debian-installer; do cat override.sid.$i >> override.sid.all3; done
63 # Generate Packages and Sources files
65 apt-ftparchive generate apt.conf
66 # Generate Release files
69 # Clean out old packages
79 echo Archive maintenance finished at $(date +%X)
81 ################################################################################
83 echo "Creating post-daily-cron-job backup of projectb database..."
84 pg_dump projectb > /org/ftp.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
86 ################################################################################
89 echo "VACUUM; VACUUM ANALYZE;" | psql projectb 2>&1 | grep -v "^NOTICE: Skipping.*only table owner can VACUUM it$"
91 ################################################################################
93 ulimit -m 90000 -d 90000 -s 10000 -v 90000
95 run-parts --report /org/ftp.debian.org/scripts/distmnt
97 echo Daily cron scripts successful.