Added excludes

This commit is contained in:
Nico Schottelius 2005-12-07 17:44:44 +01:00
parent 134f74cafc
commit cc275b5c5c
1 changed files with 1 additions and 4 deletions

View File

@ -204,9 +204,6 @@ while [ "$i" -lt "$no_shares" ]; do
fi fi
if [ -f "$c_exclude" ]; then if [ -f "$c_exclude" ]; then
errecho "Destination $c_dest does not link to a directory. Skipping."
continue
while read tmp; do while read tmp; do
EXCLUDE="$EXCLUDE --exclude \"$tmp\"" EXCLUDE="$EXCLUDE --exclude \"$tmp\""
done < "$c_exclude" done < "$c_exclude"
@ -227,7 +224,7 @@ while [ "$i" -lt "$no_shares" ]; do
# #
# the rsync part # the rsync part
# #
echo rsync --delete $VERBOSE $EXCLUDE $source $c_dest echo rsync -a --delete $EXCLUDE $VERBOSE $EXCLUDE $source $c_dest
done done
# #