3 # Executed daily via cron, out of dak's crontab.
6 export SCRIPTVARS=/org/security.debian.org/dak/config/debian-security/vars
9 ################################################################################
13 rsync --delete -r --include=override\* --exclude=\* --password-file /srv/non-us.debian.org/s3kr1t/rsync-password -ql security-master@ftp-master::indices/ $overridedir
16 for file in override*.gz; do
17 zcat $file > $(basename $file .gz)
19 find . -maxdepth 1 -mindepth 1 -type l | xargs --no-run-if-empty rm
21 for suite in $suites; do
23 oldstable) override_suite=etch;;
24 stable) override_suite=lenny;;
25 testing) override_suite=squeeze;;
26 *) echo "Unknown suite type ($suite)"; exit 1;;
28 for component in $components; do
29 for override_type in $override_types; do
30 case $override_type in
33 udeb) type=".debian-installer" ;;
36 if [ "$override_type" = "udeb" ]; then
37 if [ ! "$component" = "main" ]; then
41 zcat override.$override_suite.$component$type.gz | dak control-overrides -q -a -t $override_type -s $suite -c updates/$component
46 # Generate .all3 overides for the buildd support
47 for dist in etch lenny squeeze; do
48 rm -f override.$dist.all3
49 components="main contrib non-free";
50 if [ -f override.$dist.main.debian-installer.gz ]; then
51 components="$components main.debian-installer"
53 for component in $components; do
54 zcat override.$dist.$component.gz >> override.$dist.all3
55 if [ -e "override.$dist.$component.src.gz" ]; then
56 zcat override.$dist.$component.src.gz >> override.$dist.all3.src
61 ################################################################################
66 apt-ftparchive -q clean apt.conf
67 apt-ftparchive -q clean apt.conf.buildd
69 symlinks -d -r $ftpdir
71 pg_dump obscurity > /org/security.debian.org/dak-backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
75 echo "VACUUM; VACUUM ANALYZE;" | psql obscurity 2>&1 | egrep -v "^NOTICE: Skipping \"pg_.*only table or database owner can VACUUM it$|^VACUUM$"
78 ################################################################################