mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-14 03:21:03 +01:00
Implemented syncronization by checksum
This commit is contained in:
parent
8f8082cade
commit
1ed9b90c6f
@ -54,13 +54,13 @@ do
|
|||||||
if [ -f "$source" ]
|
if [ -f "$source" ]
|
||||||
then
|
then
|
||||||
echo "Copy data from $source to $destination..."
|
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
|
else
|
||||||
if [ -d "$source" ]
|
if [ -d "$source" ]
|
||||||
then
|
then
|
||||||
mkdir -p "$destination"
|
mkdir -p "$destination"
|
||||||
echo "Copy data from directory $source to directory $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
|
else
|
||||||
echo "$source doesn't exist. Copying data is not possible."
|
echo "$source doesn't exist. Copying data is not possible."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user