]> err.no Git - dak/commitdiff
monthly rotation of the queued log on franck
authorJoerg Jaspert <joerg@debian.org>
Tue, 1 Jan 2013 10:01:14 +0000 (11:01 +0100)
committerJoerg Jaspert <joerg@debian.org>
Tue, 1 Jan 2013 10:01:14 +0000 (11:01 +0100)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
config/debian/cron.monthly

index 3ca4a81a1e62a3f4a30713e0f2714a3254fd0f2e..233e1018aac3a3439682c1717451cbc21167cdd1 100755 (executable)
@@ -26,11 +26,19 @@ for m in mail bxamail; do
     fi;
 done
 
-DATE=`date +%Y-%m`
+DATE=$(date +%Y-%m)
 cd ${base}/log
 touch $DATE
 ln -sf $DATE current
 chmod g+w $DATE
 chown dak:ftpteam $DATE
 
+DATE=$(date -d yesterday +$Y-%m)
+cd /srv/upload.debian.org/queued
+/srv/upload.debian.org/queued/debianqueued -k || true
+mv log log.${DATE}
+touch log
+xz -9 log.${DATE}
+/srv/upload.debian.org/queued/debianqueued 2>/dev/null
+
 ################################################################################