From 1ed9b90c6fb6c9d459a2108e895ee78ce75ac0c4 Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Fri, 29 Nov 2019 11:43:10 +0100 Subject: [PATCH] Implemented syncronization by checksum --- scripts/import-data-from-system.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/import-data-from-system.sh b/scripts/import-data-from-system.sh index ab080c2..52ee685 100644 --- a/scripts/import-data-from-system.sh +++ b/scripts/import-data-from-system.sh @@ -54,13 +54,13 @@ do if [ -f "$source" ] then echo "Copy data from $source to $destination..." - rsync -uWvabPE --update --times --backup-dir="$CONCRETE_BACKUP_FOLDER" "$source" "$destination" + rsync -abcEPuvW --backup-dir="$CONCRETE_BACKUP_FOLDER" "$source" "$destination" else if [ -d "$source" ] then mkdir -p "$destination" echo "Copy data from directory $source to directory $destination..." - rsync -uWvabrPE --update --times --delete --backup-dir="$CONCRETE_BACKUP_FOLDER" "$source" "$destination" + rsync -abcEPuvW --delete --backup-dir="$CONCRETE_BACKUP_FOLDER" "$source" "$destination" else echo "$source doesn't exist. Copying data is not possible." fi