From 99f3db954062f80a513680963069fd237aa39b9f Mon Sep 17 00:00:00 2001 From: Katie Holly Date: Tue, 26 Mar 2019 00:53:18 +0100 Subject: [PATCH] Attempting to make rsync transaction more atomic --- offload-one | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offload-one b/offload-one index b7175b4..9c1c782 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 --no-compress --compress-level 0 "${UPLOADER_WORKING_DIR}/${ITEM}/" "${_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}/" result=$? if [[ $result -ne 0 ]] then