X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian-security%2Fcron.daily;h=984c8b757a82cf73090bac387fca083e6138fb9a;hb=48edb385aaaf84887a14a5e2c6f936b021ac4a08;hp=3105dd69bd5014354e623a92057321f8d7a5a576;hpb=695759e80feca4d6b2c27143a076d5e2ddf90339;p=dak.git diff --git a/config/debian-security/cron.daily b/config/debian-security/cron.daily index 3105dd69..984c8b75 100755 --- a/config/debian-security/cron.daily +++ b/config/debian-security/cron.daily @@ -50,21 +50,6 @@ for suite in stable testing; do done done -# Generate .all3 overides for the buildd support -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 - 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 @@ -89,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 ################################################################################