From c8ed69ae2ddddfeeb90ae1fef5c42f5efe6a07a8 Mon Sep 17 00:00:00 2001 From: Romain Bazile Date: Wed, 1 Sep 2021 23:15:40 +0200 Subject: [PATCH] usb backup: add log at end of main copy --- scripts/bash/usb_backup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/bash/usb_backup.sh b/scripts/bash/usb_backup.sh index f4054cf..31f09c3 100755 --- a/scripts/bash/usb_backup.sh +++ b/scripts/bash/usb_backup.sh @@ -106,6 +106,7 @@ do_backup() ${log} "Machine name is ${MACHINE}, backup folder is ${BACKUP_FOLDER}" mkdir -p "$BACKUP_FOLDER" rsync -rtD --modify-window=1 --update -W --inplace "$SOURCE" "$BACKUP_FOLDER" + ${log} "Main copy done, checking integrity now" if ! python3 -m planktoscope.integrity -c "$BACKUP_FOLDER"; then ${log} "ERROR: Some files were corrupted during the copy!" do_unmount