From ec36d59ef937cf3af35e6a5e9b039ba6427d9199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Fri, 4 Oct 2013 10:49:29 +0300 Subject: [PATCH] mirror: Exclude ".~tmp~" directory from sync to prevent errors if upstream is running sync at same time with --delay-updates option. --- mirror/files/sync-mirrors | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirror/files/sync-mirrors b/mirror/files/sync-mirrors index b3ddd48..baccf7a 100755 --- a/mirror/files/sync-mirrors +++ b/mirror/files/sync-mirrors @@ -98,7 +98,7 @@ for mirror in ${SYNC} ; do >> ${LOGFILE} rsync -aH -4 ${EXTRA_OPTS} --numeric-ids --delete --delete-after \ --delay-updates --no-motd ${RSYNCOPTS} --log-file=${LOGFILE} \ - ${SRC} /srv/mirrors/${mirror}/ + --exclude=.~tmp~/ ${SRC} /srv/mirrors/${mirror}/ if [ $? -ne 0 ]; then echo "WARN: Encountered errors on ${mirror} sync, see ${LOGFILE} for details" 1>&2 fi