From 9aa0ea4ff5d55226f14fd5558249a8e27fb02e68 Mon Sep 17 00:00:00 2001 From: Eugene Paskevich Date: Tue, 6 May 2014 22:11:29 +0300 Subject: Don't lose rsync logs/errors if stage 1 is repeated. --- bin/ftpsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ftpsync b/bin/ftpsync index 405be14..9a055a9 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -495,7 +495,7 @@ while [ -e "${UPDATEREQUIRED}" ]; do set +e # Step one, sync everything except Packages/Releases ${RSYNC} ${RSYNC_OPTIONS} ${RSYNC_OPTIONS1} ${EXCLUDE} ${SOURCE_EXCLUDE} \ - ${RSYNCPTH}::${RSYNC_PATH} "${TO}" >"${LOGDIR}/rsync-${NAME}.log" 2>"${LOGDIR}/rsync-${NAME}.error" + ${RSYNCPTH}::${RSYNC_PATH} "${TO}" >>"${LOGDIR}/rsync-${NAME}.log" 2>>"${LOGDIR}/rsync-${NAME}.error" result=$? set -e -- cgit v1.2.3