usb backup: add log at end of main copy
This commit is contained in:
parent
1cf9874391
commit
c8ed69ae2d
|
@ -106,6 +106,7 @@ do_backup()
|
||||||
${log} "Machine name is ${MACHINE}, backup folder is ${BACKUP_FOLDER}"
|
${log} "Machine name is ${MACHINE}, backup folder is ${BACKUP_FOLDER}"
|
||||||
mkdir -p "$BACKUP_FOLDER"
|
mkdir -p "$BACKUP_FOLDER"
|
||||||
rsync -rtD --modify-window=1 --update -W --inplace "$SOURCE" "$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
|
if ! python3 -m planktoscope.integrity -c "$BACKUP_FOLDER"; then
|
||||||
${log} "ERROR: Some files were corrupted during the copy!"
|
${log} "ERROR: Some files were corrupted during the copy!"
|
||||||
do_unmount
|
do_unmount
|
||||||
|
|
Loading…
Reference in a new issue