diff --git a/dev/ofunctions.sh b/dev/ofunctions.sh index 57eae91..e00fbcb 100644 --- a/dev/ofunctions.sh +++ b/dev/ofunctions.sh @@ -3,7 +3,7 @@ #### OFUNCTIONS MINI SUBSET #### _OFUNCTIONS_VERSION=2.1-dev -_OFUNCTIONS_BUILD=2016121205 +_OFUNCTIONS_BUILD=2016121301 #### _OFUNCTIONS_BOOTSTRAP SUBSET #### _OFUNCTIONS_BOOTSTRAP=true #### _OFUNCTIONS_BOOTSTRAP SUBSET END #### @@ -1696,6 +1696,9 @@ function InitRemoteOSDependingSettings { if [ "$KEEP_DIRLINKS" == "yes" ]; then RSYNC_ARGS=$RSYNC_ARGS" -K" fi + if [ "$RSYNC_OPTIONAL_ARGS" != "" ]; then + RSYNC_ARGS=$RSYNC_ARGS" "$RSYNC_OPTIONAL_ARGS + fi if [ "$PRESERVE_HARDLINKS" == "yes" ]; then RSYNC_ARGS=$RSYNC_ARGS" -H" fi diff --git a/sync.conf.example b/sync.conf.example index 8ed275c..573d3e4 100644 --- a/sync.conf.example +++ b/sync.conf.example @@ -2,7 +2,7 @@ ###### osync - Rsync based two way sync engine with fault tolerance ###### (C) 2013-2016 by Orsiris de Jong (www.netpower.fr) -###### osync v1.1x / v1.2x config file rev 2016111201 +###### osync v1.1x / v1.2x config file rev 2016121301 ## ---------- GENERAL OPTIONS @@ -79,6 +79,10 @@ REMOTE_3RD_PARTY_HOSTS="www.kernel.org www.google.com" ## ---------- MISC OPTIONS +## Optional arguments passed to rsync executable. The following are already managed by the program and shoul never be passed here +## -rltD -n -P -o -g --executability -A -X -zz -L -K -H -8 -u -i --stats --checksum --bwlimit --partial --partial-dir --exclude --exclude-from --include--from --no-whole-file --whole-file --list-only +RSYNC_OPTIONAL_ARGS="" + ## Preserve basic linux permissions PRESERVE_PERMISSIONS=yes PRESERVE_OWNER=yes