X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian-security%2Fcron.daily;h=3476d7db556f3e115d2171c89352b714ec26bdbc;hb=e0b278fa0638b0da6919159a33fe9cd5ce87a819;hp=41127c1a28a54ec749080ffbb09a5beb8920360c;hpb=0d3e6065d965432889db49606dfce2488d2c41a2;p=dak.git diff --git a/config/debian-security/cron.daily b/config/debian-security/cron.daily index 41127c1a..3476d7db 100755 --- a/config/debian-security/cron.daily +++ b/config/debian-security/cron.daily @@ -23,8 +23,9 @@ find . -maxdepth 1 -mindepth 1 -type l | xargs --no-run-if-empty rm for suite in stable testing; do case $suite in - stable) override_suite=squeeze;; - testing) override_suite=wheezy;; + oldstable) override_suite=squeeze;; + stable) override_suite=wheezy;; + testing) override_suite=jessie;; *) echo "Unknown suite type ($suite)"; exit 1;; esac for component in $components; do @@ -50,7 +51,7 @@ for suite in stable testing; do done # Generate .all3 overides for the buildd support -for dist in squeeze wheezy; do +for dist in squeeze wheezy jessie; do rm -f override.$dist.all3 components="main contrib non-free"; if [ -f override.$dist.main.debian-installer.gz ]; then @@ -88,13 +89,10 @@ trap - EXIT symlinks -d -r $ftpdir -pg_dump obscurity > /org/security-master.debian.org/dak-backup/dump_$(date +%Y.%m.%d-%H:%M:%S) -find -maxdepth 1 -mindepth 1 -type f -name 'dump_*' \! -name '*.bz2' \! -name '*.gz' -mmin +720 | -while read dumpname; do - bzip2 -9fv "$dumpname" -done +pg_file="${base}/dak-backup/dump_$(date +%Y.%m.%d-%H:%M:%S)" +pg_dump obscurity > "${pg_file}" +nice xz -9 "${pg_file}" -#apt-ftparchive -q clean apt.conf -#apt-ftparchive -q clean apt.conf.buildd +find "${base}/dak-backup" -mtime +30 \! -name '.nobackup' -delete ################################################################################