X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=cron.weekly;h=8357d2ee8309fbbbbc52e582f8221d7ad158de02;hb=80b0cf4b95f879ce7e6e41297bced5c4e955f697;hp=9c84600cb8034759240593d2658b250fc152f881;hpb=9958d0c2f3529d94446846e2e0757d536219ec7b;p=dak.git diff --git a/cron.weekly b/cron.weekly index 9c84600c..8357d2ee 100755 --- a/cron.weekly +++ b/cron.weekly @@ -1,6 +1,6 @@ #!/bin/sh # -# Run once a week via cron, out of troup's crontab. +# Run once a week via cron, out of katie's crontab. set -e export SCRIPTVARS=/org/ftp.debian.org/katie/vars @@ -8,31 +8,16 @@ export SCRIPTVARS=/org/ftp.debian.org/katie/vars ################################################################################ -echo "Creating pre-weekly-cron-job backup of projectb database..." -pg_dump projectb > /org/ftp.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S) - -################################################################################ - -### [JJT] Disabled until shania is rewritten -#cd $masterdir -#shania -v -#shania -v -m -i $incoming - # Purge empty directories -if [ ! -z "$(find $ftpdir/pool/ -type d -empty)" ]; then - find $ftpdir/pool/ -type d -empty | xargs rmdir; +if [ ! -z "$(find $ftpdir/pool/ -type d -empty)" ]; then + find $ftpdir/pool/ -type d -empty | xargs rmdir; fi # Clean up apt-ftparchive's databases -apt-ftparchive clean apt.conf - -# TODO: weekly postins to d-c (?), backup of report (?), backup of changes.tgz (?) - -################################################################################ - -echo "Creating post-weekly-cron-job backup of projectb database..." -pg_dump projectb > /org/ftp.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S) +cd $masterdir +apt-ftparchive -q clean apt.conf +apt-ftparchive -q clean apt.conf.buildd ################################################################################