Allow overriding of rsync options

Moving $RSYNC_EXTRA to the end of options, so users can override
the default options.

This hint was brought to me by Marcus Wagner.
This commit is contained in:
Nico Schottelius 2006-09-05 21:41:12 +02:00
parent c313ac8f49
commit 0e07585772
2 changed files with 10 additions and 5 deletions

View file

@ -14,8 +14,8 @@ CPREEXEC="$CDEFAULTS/pre_exec"
CPOSTEXEC="$CDEFAULTS/post_exec"
TMP=$(mktemp /tmp/$(basename $0).XXXXXX)
VERSION=0.4.2
RELEASE="2006-06-17"
VERSION=0.4.3
RELEASE="2006-XX-XX"
HALF_VERSION="ccollect $VERSION"
FULL_VERSION="ccollect $VERSION ($RELEASE)"
@ -403,8 +403,8 @@ while [ "$i" -lt "$no_sources" ]; do
echo "$($DDATE) Transferring files..."
rsync -a $VERBOSE $RSYNC_EXTRA $EXCLUDE $SUMMARY \
--delete --numeric-ids --relative --delete-excluded \
rsync -a --delete --numeric-ids --relative --delete-excluded \
$VERBOSE $EXCLUDE $SUMMARY $RSYNC_EXTRA \
"$source" "$abs_destination_dir"
if [ "$?" -ne 0 ]; then

View file

@ -1,3 +1,8 @@
0.4.2 to 0.4.3:
* Display error code of rsync, if non-zero (for further analysis)
* Fix Makefile, so 'make install' works on others OS
* reorder $RSYNC_EXTRA, so it can be overriden by users
0.4.1 to 0.4.2:
* fixed bug when $CCOLLECT_CONF is relative
* added Quickstart to documentation