2
0
mirror of https://github.com/deajan/osync synced 2024-11-03 15:40:14 +00:00

More accurate syncattr skip check

This commit is contained in:
deajan 2016-11-15 13:25:35 +01:00
parent dbd28f13ef
commit b68162fd8e

View File

@ -4,7 +4,7 @@ PROGRAM="osync" # Rsync based two way sync engine with fault tolerance
AUTHOR="(C) 2013-2016 by Orsiris de Jong"
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
PROGRAM_VERSION=1.2-beta2
PROGRAM_BUILD=2016111502
PROGRAM_BUILD=2016111503
IS_STABLE=no
# Execution order #__WITH_PARANOIA_DEBUG
@ -1422,8 +1422,7 @@ function Sync {
## Step 2
if [ "$resumeInitiator" == "${SYNC_ACTION[2]}" ] || [ "$resumeTarget" == "${SYNC_ACTION[2]}" ]; then
#TODO(high) only -X and -A (xattr & acl) should trigger this
if [ "$RSYNC_ATTR_ARGS" != "" ]; then
if [[ "$RSYNC_ATTR_ARGS" == *"-X"* ]] || [[ "$RSYNC_ATTR_ARGS" == *"-A"* ]]; then
syncAttrs "${INITIATOR[$__replicaDir]}" "$TARGET_SYNC_DIR"
WaitForTaskCompletion $! $SOFT_MAX_EXEC_TIME $HARD_MAX_EXEC_TIME ${FUNCNAME[0]} false $KEEP_LOGGING
if [ $? != 0 ]; then