mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-10 01:51:03 +01:00
Implemented syncronization by checksum
This commit is contained in:
parent
8f8082cade
commit
1ed9b90c6f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user