|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#### MINIMAL-FUNCTION-SET BEGIN ####
|
|
|
|
|
|
|
|
|
|
## FUNC_BUILD=2016080806
|
|
|
|
|
## FUNC_BUILD=2016080901
|
|
|
|
|
## BEGIN Generic functions for osync & obackup written in 2013-2016 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
|
|
|
|
|
|
|
|
|
#TODO: set _LOGGER_PREFIX in other apps, specially for osync daemon mode
|
|
|
|
@ -1148,7 +1148,6 @@ function PreInit {
|
|
|
|
|
|
|
|
|
|
## Set rsync default arguments
|
|
|
|
|
RSYNC_ARGS="-rltD"
|
|
|
|
|
RSYNC_ATTR_ARGS="-pgo"
|
|
|
|
|
if [ "$_DRYRUN" -eq 1 ]; then
|
|
|
|
|
RSYNC_DRY_ARG="-n"
|
|
|
|
|
DRY_WARNING="/!\ DRY RUN"
|
|
|
|
@ -1156,6 +1155,16 @@ function PreInit {
|
|
|
|
|
RSYNC_DRY_ARG=""
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
RSYNC_ATTR_ARGS=""
|
|
|
|
|
if [ "$PRESERVE_PERMISSIONS" != "no" ]; then
|
|
|
|
|
RSYNC_ATTR_ARGS=$RSYNC_ATTR_ARGS" -p"
|
|
|
|
|
fi
|
|
|
|
|
if [ "$PRESERVE_OWNER" != "no" ]; then
|
|
|
|
|
RSYNC_ATTR_ARGS=$RSYNC_ATTR_ARGS" -o"
|
|
|
|
|
fi
|
|
|
|
|
if [ "$PRESERVE_GROUP" != "no" ]; then
|
|
|
|
|
RSYNC_ATTR_ARGS=$RSYNC_ATTR_ARGS" -g"
|
|
|
|
|
|
|
|
|
|
if [ "$PRESERVE_ACL" == "yes" ]; then
|
|
|
|
|
RSYNC_ATTR_ARGS=$RSYNC_ATTR_ARGS" -A"
|
|
|
|
|
fi
|
|
|
|
|