Kaynağa Gözat
Merge pull request #15 from Fusl/rsync-opts
Additional rsync options for better connection timeout handling + increase performance
master
km09
5 yıl önce
committed by
GitHub
ebeveyn
işleme
ae78e479e3
Veri tabanında bu imza için bilinen anahtar bulunamadı
GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile
1 ekleme ve
1 silme
-
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 |
|
|
|