From 3550dcf362de86de731fec742a193f1afed9b45b Mon Sep 17 00:00:00 2001 From: Romain Bazile Date: Wed, 2 Jun 2021 14:02:06 +0200 Subject: [PATCH] usb_backup: update rsync flags to improve speed (cherry picked from commit 3c4e34f4e132dfebb74d77f089fca5f323e88eed) --- scripts/bash/usb_backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bash/usb_backup.sh b/scripts/bash/usb_backup.sh index 452e677..f4054cf 100755 --- a/scripts/bash/usb_backup.sh +++ b/scripts/bash/usb_backup.sh @@ -105,7 +105,7 @@ do_backup() BACKUP_FOLDER="${MOUNT_POINT}/planktoscope_data/${MACHINE}" ${log} "Machine name is ${MACHINE}, backup folder is ${BACKUP_FOLDER}" mkdir -p "$BACKUP_FOLDER" - rsync -rtD --modify-window=1 --update "$SOURCE" "$BACKUP_FOLDER" + rsync -rtD --modify-window=1 --update -W --inplace "$SOURCE" "$BACKUP_FOLDER" if ! python3 -m planktoscope.integrity -c "$BACKUP_FOLDER"; then ${log} "ERROR: Some files were corrupted during the copy!" do_unmount