X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian-security%2Fcron.daily;h=f2eff107b10e1ce9c29622a971e253e1d146ddce;hb=19ffc1de995fd165d9438a8b7769cd7c45bbce60;hp=41127c1a28a54ec749080ffbb09a5beb8920360c;hpb=0d3e6065d965432889db49606dfce2488d2c41a2;p=dak.git diff --git a/config/debian-security/cron.daily b/config/debian-security/cron.daily index 41127c1a..f2eff107 100755 --- a/config/debian-security/cron.daily +++ b/config/debian-security/cron.daily @@ -21,10 +21,11 @@ for file in override*.gz; do done find . -maxdepth 1 -mindepth 1 -type l | xargs --no-run-if-empty rm -for suite in stable testing; do +for suite in oldstable stable testing; do case $suite in - stable) override_suite=squeeze;; - testing) override_suite=wheezy;; + oldstable) override_suite=wheezy ;; + stable) override_suite=jessie ;; + testing) override_suite=stretch ;; *) echo "Unknown suite type ($suite)"; exit 1;; esac for component in $components; do @@ -49,21 +50,6 @@ for suite in stable testing; do done done -# Generate .all3 overides for the buildd support -for dist in squeeze wheezy; do - rm -f override.$dist.all3 - components="main contrib non-free"; - if [ -f override.$dist.main.debian-installer.gz ]; then - components="$components main.debian-installer" - fi - for component in $components; do - zcat override.$dist.$component.gz >> override.$dist.all3 - if [ -e "override.$dist.$component.src.gz" ]; then - zcat override.$dist.$component.src.gz >> override.$dist.all3.src - fi - done -done - ################################################################################ cd $configdir @@ -88,13 +74,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 ################################################################################