usb backup: add log at end of main copy

This commit is contained in:
Romain Bazile 2021-09-01 23:15:40 +02:00
parent 1cf9874391
commit c8ed69ae2d

View file

@ -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