|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
#### OFUNCTIONS MINI SUBSET ####
|
|
|
|
|
|
|
|
|
|
_OFUNCTIONS_VERSION=2.1
|
|
|
|
|
_OFUNCTIONS_BUILD=2016121004
|
|
|
|
|
_OFUNCTIONS_BUILD=2016121101
|
|
|
|
|
_OFUNCTIONS_BOOTSTRAP=true
|
|
|
|
|
## BEGIN Generic bash functions written in 2013-2016 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
|
|
|
|
|
|
|
|
@ -1659,18 +1659,23 @@ function InitRemoteOSDependingSettings {
|
|
|
|
|
if [ "$PRESERVE_EXECUTABILITY" != "no" ]; then
|
|
|
|
|
RSYNC_ATTR_ARGS=$RSYNC_ATTR_ARGS" --executability"
|
|
|
|
|
fi
|
|
|
|
|
if [ "$LOCAL_OS" != "MacOSX" ] && [ "$REMOTE_OS" != "MacOSX" ] && [ "$LOCAL_OS" != "msys" ] && [ "$LOCAL_OS" != "Cygwin" ] && [ "$REMOTE_OS" != "MacOSX" ]; then
|
|
|
|
|
if [ "$PRESERVE_ACL" == "yes" ]; then
|
|
|
|
|
if [ "$PRESERVE_ACL" == "yes" ]; then
|
|
|
|
|
if [ "$LOCAL_OS" != "MacOSX" ] && [ "$REMOTE_OS" != "MacOSX" ] && [ "$LOCAL_OS" != "msys" ] && [ "$LOCAL_OS" != "Cygwin" ] && [ "$REMOTE_OS" != "MacOSX" ] && [ "$REMOTE_OS" != "BusyBox" ]; then
|
|
|
|
|
RSYNC_ATTR_ARGS=$RSYNC_ATTR_ARGS" -A"
|
|
|
|
|
else
|
|
|
|
|
Logger "Disabling ACL synchronization on [$LOCAL_OS]." "NOTICE"
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
if [ "$PRESERVE_XATTR" == "yes" ]; then
|
|
|
|
|
fi
|
|
|
|
|
if [ "$PRESERVE_XATTR" == "yes" ]; then
|
|
|
|
|
if [ "$LOCAL_OS" != "MacOSX" ] && [ "$REMOTE_OS" != "MacOSX" ] && [ "$LOCAL_OS" != "msys" ] && [ "$LOCAL_OS" != "Cygwin" ] && [ "$REMOTE_OS" != "MacOSX" ] && [ "$REMOTE_OS" != "BusyBox" ]; then
|
|
|
|
|
RSYNC_ATTR_ARGS=$RSYNC_ATTR_ARGS" -X"
|
|
|
|
|
else
|
|
|
|
|
Logger "Disabling extended attributes synchronization on [$LOCAL_OS]." "NOTICE"
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
Logger "Disabling ACL and extended attributes synchronization on [$LOCAL_OS]." "NOTICE"
|
|
|
|
|
fi
|
|
|
|
|
if [ "$RSYNC_COMPRESS" == "yes" ]; then
|
|
|
|
|
RSYNC_ARGS=$RSYNC_ARGS" -z"
|
|
|
|
|
RSYNC_ARGS=$RSYNC_ARGS" -zz --skip-compress=gz/xz/lz/lzma/lzo/rz/jpg/mp[34]/7z/bz2/rar/zip/sfark/s7z/ace/apk/arc/cab/dmg/jar/kgb/lzh/lha/lzx/pak/sfx"
|
|
|
|
|
fi
|
|
|
|
|
if [ "$COPY_SYMLINKS" == "yes" ]; then
|
|
|
|
|
RSYNC_ARGS=$RSYNC_ARGS" -L"
|
|
|
|
|