Lets do it
This commit is contained in:
parent
951052cdca
commit
c36f1156c7
1 changed files with 4 additions and 4 deletions
|
@ -226,7 +226,7 @@ while [ "$i" -lt "$no_shares" ]; do
|
||||||
while read to_remove; do
|
while read to_remove; do
|
||||||
dir="$to_remove"
|
dir="$to_remove"
|
||||||
echo "|-> Removing $dir ..."
|
echo "|-> Removing $dir ..."
|
||||||
echo rm -rf "$dir"
|
rm -rf "$dir"
|
||||||
done < "$TMP"
|
done < "$TMP"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -241,7 +241,7 @@ while [ "$i" -lt "$no_shares" ]; do
|
||||||
|
|
||||||
# only copy if a directory exists
|
# only copy if a directory exists
|
||||||
if [ "$last_dir" ]; then
|
if [ "$last_dir" ]; then
|
||||||
echo cp -al "$last_dir" "$destination_dir"
|
cp -al "$last_dir" "$destination_dir"
|
||||||
else
|
else
|
||||||
mkdir "$destination_dir"
|
mkdir "$destination_dir"
|
||||||
fi
|
fi
|
||||||
|
@ -256,7 +256,7 @@ while [ "$i" -lt "$no_shares" ]; do
|
||||||
# options stolen shameless from rsnapshot
|
# options stolen shameless from rsnapshot
|
||||||
#
|
#
|
||||||
|
|
||||||
echo rsync -a --delete --numeric-ids --relative --delete-excluded \
|
rsync -a --delete --numeric-ids --relative --delete-excluded \
|
||||||
$EXCLUDE $VERBOSE $EXCLUDE "$source" "$destination_dir"
|
$EXCLUDE $VERBOSE $EXCLUDE "$source" "$destination_dir"
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
|
Loading…
Reference in a new issue