From 716181cde8f004d12b79e00a818291c6ff3b4762 Mon Sep 17 00:00:00 2001 From: Katie Holly Date: Tue, 26 Mar 2019 16:30:16 +0100 Subject: [PATCH] Additional rsync options for better connection timeout handling + increase performance --- offload-one | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offload-one b/offload-one index 9c1c782..2f78346 100755 --- a/offload-one +++ b/offload-one @@ -82,7 +82,7 @@ do continue fi echo "Offloading to ${_OFFLOAD_TARGET}/${ITEM}/" - rsync -r --progress --stats --no-owner --no-group --partial --partial-dir .rsync-tmp --delay-updates --no-compress --compress-level 0 "${UPLOADER_WORKING_DIR}/${ITEM}/" "${_OFFLOAD_TARGET}/${ITEM}/" + rsync -rltv --timeout=900 --contimeout=60 --sockopts=SO_SNDBUF=8388608,SO_RCVBUF=8388608 --progress --stats --no-owner --no-group --partial --partial-dir .rsync-tmp --delay-updates --no-compress --compress-level 0 "${UPLOADER_WORKING_DIR}/${ITEM}/" "${_OFFLOAD_TARGET}/${ITEM}/" result=$? if [[ $result -ne 0 ]] then