+ log 'Mirrorsync start'
+ [[ -z ftpsync ]]
++ date '+%b %d %H:%M:%S'
++ hostname -s
+ echo 'Sep 08 20:37:49 rockhammer ftpsync[24662]: Mirrorsync start'
Sep 08 20:37:49 rockhammer ftpsync[24662]: Mirrorsync start
+ SSH_CONNECTION=
+ PUSHFROM=
+ [[ -n '' ]]
+ [[ true = false ]]
+ HOOK=(HOOKNR=1 HOOKSCR=${HOOK1})
+ hook HOOKNR=1
+ ARGS='HOOK[@]'
+ local HOOKNR=1 HOOKSCR=
+ [[ -n '' ]]
+ return 0
+ [[ -z '' ]]
+ RSYNCPTH=ftp.de.debian.org
+ export RSYNC_PASSWORD
+ export RSYNC_PROXY
+ UPDATE_RETRIES=0
+ [[ -e /tmp/mirror/Archive-Update-Required-rockhammer.waldi.eu.org ]]
+ log 'Running mirrorsync, update is required, /tmp/mirror/Archive-Update-Required-rockhammer.waldi.eu.org exists'
+ [[ -z ftpsync ]]
++ date '+%b %d %H:%M:%S'
++ hostname -s
+ echo 'Sep 08 20:37:49 rockhammer ftpsync[24662]: Running mirrorsync, update is required, /tmp/mirror/Archive-Update-Required-rockhammer.waldi.eu.org exists'
Sep 08 20:37:49 rockhammer ftpsync[24662]: Running mirrorsync, update is required, /tmp/mirror/Archive-Update-Required-rockhammer.waldi.eu.org exists
+ [[ true = false ]]
+ [[ true = true ]]
+ [[ -e /tmp/mirror/Archive-Update-Required-rockhammer.waldi.eu.org ]]
+ rm -f /tmp/mirror/Archive-Update-Required-rockhammer.waldi.eu.org
+ log 'Running stage1: rsync   --bwlimit=0 -rltHS --timeout 3600 --info=name1,skip0,stats2 --itemize-changes --include=/dists/ --include=/dists/buster --exclude=installer-* --exclude=/dists/* --exclude=/* --include=*.diff/ --exclude=*.diff/Index --exclude=Packages* --exclude=Sources* --exclude=Release* --exclude=InRelease --include=i18n/by-hash --exclude=i18n/* --exclude=ls-lR*  --exclude=.~tmp~/   ftp.de.debian.org::debian /tmp/mirror'
+ [[ -z ftpsync ]]
++ date '+%b %d %H:%M:%S'
++ hostname -s
+ echo 'Sep 08 20:37:49 rockhammer ftpsync[24662]: Running stage1: rsync   --bwlimit=0 -rltHS --timeout 3600 --info=name1,skip0,stats2 --itemize-changes --include=/dists/ --include=/dists/buster --exclude=installer-* --exclude=/dists/* --exclude=/* --include=*.diff/ --exclude=*.diff/Index --exclude=Packages* --exclude=Sources* --exclude=Release* --exclude=InRelease --include=i18n/by-hash --exclude=i18n/* --exclude=ls-lR*  --exclude=.~tmp~/   ftp.de.debian.org::debian /tmp/mirror'
Sep 08 20:37:49 rockhammer ftpsync[24662]: Running stage1: rsync   --bwlimit=0 -rltHS --timeout 3600 --info=name1,skip0,stats2 --itemize-changes --include=/dists/ --include=/dists/buster --exclude=installer-* --exclude=/dists/* --exclude=/* --include=*.diff/ --exclude=*.diff/Index --exclude=Packages* --exclude=Sources* --exclude=Release* --exclude=InRelease --include=i18n/by-hash --exclude=i18n/* --exclude=ls-lR*  --exclude=.~tmp~/   ftp.de.debian.org::debian /tmp/mirror
+ set +e
++ date +%s
+ rsync_started=1504895869
+ rsync --bwlimit=0 -rltHS --timeout 3600 --info=name1,skip0,stats2 --itemize-changes --include=/dists/ --include=/dists/buster '--exclude=installer-*' '--exclude=/dists/*' '--exclude=/*' '--include=*.diff/' '--exclude=*.diff/Index' '--exclude=Packages*' '--exclude=Sources*' '--exclude=Release*' --exclude=InRelease --include=i18n/by-hash '--exclude=i18n/*' '--exclude=ls-lR*' --exclude=.~tmp~/ ftp.de.debian.org::debian /tmp/mirror
++ cleanup
++ trap - ERR TERM HUP INT QUIT EXIT
++ log 'Mirrorsync done'
++ [[ -z ftpsync ]]
+++ date '+%b %d %H:%M:%S'
+++ hostname -s
++ echo 'Sep 08 20:37:50 rockhammer ftpsync[24662]: Mirrorsync done'
Sep 08 20:37:50 rockhammer ftpsync[24662]: Mirrorsync done
++ [[ -n root ]]
++ [[ -s /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error ]]
+++ hostname -s
+++ date +%Y.%m.%d-%H:%M:%S
++ mailx -E -s '[ftpsync@rockhammer] (24662) rsync ERROR on 2017.09.08-20:37:50' root
++ [[ true = false ]]
++ savelog /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log
++ torotate=/home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log
++ count=14
++ [[ 14 -gt 0 ]]
++ prev=13
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.13 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.13 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.14
++ count=13
++ [[ 13 -gt 0 ]]
++ prev=12
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.12 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.12 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.13
++ count=12
++ [[ 12 -gt 0 ]]
++ prev=11
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.11 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.11 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.12
++ count=11
++ [[ 11 -gt 0 ]]
++ prev=10
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.10 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.10 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.11
++ count=10
++ [[ 10 -gt 0 ]]
++ prev=9
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.9 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.9 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.10
++ count=9
++ [[ 9 -gt 0 ]]
++ prev=8
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.8 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.8 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.9
++ count=8
++ [[ 8 -gt 0 ]]
++ prev=7
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.7 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.7 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.8
++ count=7
++ [[ 7 -gt 0 ]]
++ prev=6
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.6 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.6 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.7
++ count=6
++ [[ 6 -gt 0 ]]
++ prev=5
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.5 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.5 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.6
++ count=5
++ [[ 5 -gt 0 ]]
++ prev=4
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.4 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.4 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.5
++ count=4
++ [[ 4 -gt 0 ]]
++ prev=3
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.3 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.3 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.4
++ count=3
++ [[ 3 -gt 0 ]]
++ prev=2
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.2 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.2 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.3
++ count=2
++ [[ 2 -gt 0 ]]
++ prev=1
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.1 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.1 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.2
++ count=1
++ [[ 1 -gt 0 ]]
++ prev=0
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.0 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.0 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.1
++ count=0
++ [[ 0 -gt 0 ]]
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log.0
++ savelog /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error
++ torotate=/home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error
++ count=14
++ [[ 14 -gt 0 ]]
++ prev=13
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.13 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.13 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.14
++ count=13
++ [[ 13 -gt 0 ]]
++ prev=12
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.12 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.12 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.13
++ count=12
++ [[ 12 -gt 0 ]]
++ prev=11
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.11 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.11 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.12
++ count=11
++ [[ 11 -gt 0 ]]
++ prev=10
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.10 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.10 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.11
++ count=10
++ [[ 10 -gt 0 ]]
++ prev=9
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.9 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.9 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.10
++ count=9
++ [[ 9 -gt 0 ]]
++ prev=8
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.8 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.8 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.9
++ count=8
++ [[ 8 -gt 0 ]]
++ prev=7
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.7 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.7 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.8
++ count=7
++ [[ 7 -gt 0 ]]
++ prev=6
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.6 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.6 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.7
++ count=6
++ [[ 6 -gt 0 ]]
++ prev=5
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.5 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.5 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.6
++ count=5
++ [[ 5 -gt 0 ]]
++ prev=4
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.4 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.4 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.5
++ count=4
++ [[ 4 -gt 0 ]]
++ prev=3
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.3 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.3 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.4
++ count=3
++ [[ 3 -gt 0 ]]
++ prev=2
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.2 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.2 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.3
++ count=2
++ [[ 2 -gt 0 ]]
++ prev=1
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.1 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.1 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.2
++ count=1
++ [[ 1 -gt 0 ]]
++ prev=0
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.0 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.0 /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.1
++ count=0
++ [[ 0 -gt 0 ]]
++ [[ -e /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error ]]
++ mv /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.error.0
++ savelog /home/bastian/debian/mirror/archvsync/log/ftpsync.log
++ torotate=/home/bastian/debian/mirror/archvsync/log/ftpsync.log
++ count=14
++ [[ 14 -gt 0 ]]
++ prev=13
++ [[ -e /home/bastian/debian/mirror/archvsync/log/ftpsync.log.13 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/ftpsync.log.13 /home/bastian/debian/mirror/archvsync/log/ftpsync.log.14
++ count=13
++ [[ 13 -gt 0 ]]
++ prev=12
++ [[ -e /home/bastian/debian/mirror/archvsync/log/ftpsync.log.12 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/ftpsync.log.12 /home/bastian/debian/mirror/archvsync/log/ftpsync.log.13
++ count=12
++ [[ 12 -gt 0 ]]
++ prev=11
++ [[ -e /home/bastian/debian/mirror/archvsync/log/ftpsync.log.11 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/ftpsync.log.11 /home/bastian/debian/mirror/archvsync/log/ftpsync.log.12
++ count=11
++ [[ 11 -gt 0 ]]
++ prev=10
++ [[ -e /home/bastian/debian/mirror/archvsync/log/ftpsync.log.10 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/ftpsync.log.10 /home/bastian/debian/mirror/archvsync/log/ftpsync.log.11
++ count=10
++ [[ 10 -gt 0 ]]
++ prev=9
++ [[ -e /home/bastian/debian/mirror/archvsync/log/ftpsync.log.9 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/ftpsync.log.9 /home/bastian/debian/mirror/archvsync/log/ftpsync.log.10
++ count=9
++ [[ 9 -gt 0 ]]
++ prev=8
++ [[ -e /home/bastian/debian/mirror/archvsync/log/ftpsync.log.8 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/ftpsync.log.8 /home/bastian/debian/mirror/archvsync/log/ftpsync.log.9
++ count=8
++ [[ 8 -gt 0 ]]
++ prev=7
++ [[ -e /home/bastian/debian/mirror/archvsync/log/ftpsync.log.7 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/ftpsync.log.7 /home/bastian/debian/mirror/archvsync/log/ftpsync.log.8
++ count=7
++ [[ 7 -gt 0 ]]
++ prev=6
++ [[ -e /home/bastian/debian/mirror/archvsync/log/ftpsync.log.6 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/ftpsync.log.6 /home/bastian/debian/mirror/archvsync/log/ftpsync.log.7
++ count=6
++ [[ 6 -gt 0 ]]
++ prev=5
++ [[ -e /home/bastian/debian/mirror/archvsync/log/ftpsync.log.5 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/ftpsync.log.5 /home/bastian/debian/mirror/archvsync/log/ftpsync.log.6
++ count=5
++ [[ 5 -gt 0 ]]
++ prev=4
++ [[ -e /home/bastian/debian/mirror/archvsync/log/ftpsync.log.4 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/ftpsync.log.4 /home/bastian/debian/mirror/archvsync/log/ftpsync.log.5
++ count=4
++ [[ 4 -gt 0 ]]
++ prev=3
++ [[ -e /home/bastian/debian/mirror/archvsync/log/ftpsync.log.3 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/ftpsync.log.3 /home/bastian/debian/mirror/archvsync/log/ftpsync.log.4
++ count=3
++ [[ 3 -gt 0 ]]
++ prev=2
++ [[ -e /home/bastian/debian/mirror/archvsync/log/ftpsync.log.2 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/ftpsync.log.2 /home/bastian/debian/mirror/archvsync/log/ftpsync.log.3
++ count=2
++ [[ 2 -gt 0 ]]
++ prev=1
++ [[ -e /home/bastian/debian/mirror/archvsync/log/ftpsync.log.1 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/ftpsync.log.1 /home/bastian/debian/mirror/archvsync/log/ftpsync.log.2
++ count=1
++ [[ 1 -gt 0 ]]
++ prev=0
++ [[ -e /home/bastian/debian/mirror/archvsync/log/ftpsync.log.0 ]]
++ mv /home/bastian/debian/mirror/archvsync/log/ftpsync.log.0 /home/bastian/debian/mirror/archvsync/log/ftpsync.log.1
++ count=0
++ [[ 0 -gt 0 ]]
++ [[ -e /home/bastian/debian/mirror/archvsync/log/ftpsync.log ]]
++ mv /home/bastian/debian/mirror/archvsync/log/ftpsync.log /home/bastian/debian/mirror/archvsync/log/ftpsync.log.0
++ rm -f /tmp/mirror/Archive-Update-in-Progress-rockhammer.waldi.eu.org
+ result=20
++ date +%s
+ rsync_ended=1504895870
+ STATS_TOTAL_RSYNC_TIME1=1
+ set -e
+ log 'Back from rsync with returncode 20'
+ [[ -z ftpsync ]]
++ date '+%b %d %H:%M:%S'
++ hostname -s
+ echo 'Sep 08 20:37:50 rockhammer ftpsync[24662]: Back from rsync with returncode 20'
Sep 08 20:37:50 rockhammer ftpsync[24662]: Back from rsync with returncode 20
+ [[ -e /tmp/mirror/Archive-Update-Required-rockhammer.waldi.eu.org ]]
+ rm -f /tmp/mirror/Archive-Update-Required-rockhammer.waldi.eu.org
+ set +e
+ check_rsync 20 'Sync step 1 went wrong, got errorcode 20. Logfile: /home/bastian/debian/mirror/archvsync/log/ftpsync.log'
+ ret=20
+ msg='Sync step 1 went wrong, got errorcode 20. Logfile: /home/bastian/debian/mirror/archvsync/log/ftpsync.log'
+ [[ -f /home/bastian/debian/mirror/archvsync/log/rsync-ftpsync.log ]]
+ case "${ret}" in
+ error 'ERROR: Sync step 1 went wrong, got errorcode 20. Logfile: /home/bastian/debian/mirror/archvsync/log/ftpsync.log'
+ log 'ERROR: Sync step 1 went wrong, got errorcode 20. Logfile: /home/bastian/debian/mirror/archvsync/log/ftpsync.log'
+ [[ -z ftpsync ]]
++ date '+%b %d %H:%M:%S'
++ hostname -s
+ echo 'Sep 08 20:37:50 rockhammer ftpsync[24662]: ERROR: Sync step 1 went wrong, got errorcode 20. Logfile: /home/bastian/debian/mirror/archvsync/log/ftpsync.log'
Sep 08 20:37:50 rockhammer ftpsync[24662]: ERROR: Sync step 1 went wrong, got errorcode 20. Logfile: /home/bastian/debian/mirror/archvsync/log/ftpsync.log
+ [[ -n root ]]
+ echo 'ERROR: Sync step 1 went wrong, got errorcode 20. Logfile: /home/bastian/debian/mirror/archvsync/log/ftpsync.log'
++ hostname -s
+ mailx -e -s '[ftpsync@rockhammer] ERROR [24662]' root
+ return 1
+ GO=1
+ set -e
+ [[ 1 -eq 2 ]]
+ [[ 1 -ne 0 ]]
+ exit 3
