Logger "Bogus sync type parameter [$SYNC_TYPE].""CRITICAL"
exit1
fi
fi
}
###### Osync specific functions (non shared)
@ -4712,14 +4719,14 @@ function Sync {
if["$resumeInitiator" !="synced"];then
Logger "Trying to resume aborted execution on $($STAT_CMD"${INITIATOR[$__initiatorLastActionFile]}") at task [$resumeInitiator] for initiator. [$resumeCount] previous tries.""NOTICE"
Logger "Trying to resume aborted execution on $($STAT_CMD"${INITIATOR[$__targetLastActionFile]}") as task [$resumeTarget] for target. [$resumeCount] previous tries.""NOTICE"
@ -5726,9 +5733,6 @@ function _SummaryFromRsyncFile {
__CheckArguments 3$#"$@"#__WITH_PARANOIA_DEBUG
INITIATOR_UPDATES_COUNT=0
TARGET_UPDATES_COUNT=0
if[ -f "$summaryFile"];then
whileread -r file;do
# grep -E "^<|^>|^\." = Remove all lines that do not begin with <, > or . to deal with a bizarre bug involving rsync 3.0.6 / CentOS 6 and --skip-compress showing 'adding zip' line for every skipped compressed extension
@ -5752,9 +5756,6 @@ function _SummaryFromDeleteFile {
__CheckArguments 3$#"$@"#__WITH_PARANOIA_DEBUG
INITIATOR_DELETES_COUNT=0
TARGET_DELETES_COUNT=0
if[ -f "$summaryFile"];then
whileread -r file;do
Logger "$direction$replicaPath$file""ALWAYS"
@ -6117,6 +6118,7 @@ function Usage {
echo"--remote-token=\"\" When using ssh filter protection, you must specify the remote token set in ssh_filter.sh"
echo"--instance-id=\"\" Optional sync task name to identify this synchronization task when using multiple targets"
echo"--skip-deletion=\"\" You may skip deletion propagation on initiator or target. Valid values: initiator target initiator,target"
echo"--sync-type=\"\" Allows osync to run in unidirectional sync mode. Valid values: initiator2target, target2initiator"
echo"--destination-mails=\"\" Double quoted list of space separated email addresses to send alerts to"
echo""
echo"Additionaly, you may set most osync options at runtime. eg:"
@ -6263,6 +6265,12 @@ if [ "$MAX_WAIT" == "" ]; then
MAX_WAIT=7200
fi
# Global counters for --summary
INITIATOR_UPDATES_COUNT=0
TARGET_UPDATES_COUNT=0
INITIATOR_DELETES_COUNT=0
TARGET_DELETES_COUNT=0
function GetCommandlineArguments {
localisFirstArgument=true
@ -6271,8 +6279,8 @@ function GetCommandlineArguments {
Usage
fi
for i in "$@";do
case$i in
for i in "${@}";do
case"$i" in
--dry)
_DRYRUN=true
opts=$opts" --dry"
@ -6305,30 +6313,34 @@ function GetCommandlineArguments {
Logger "Bogus sync type parameter [$SYNC_TYPE].""CRITICAL"
exit1
fi
fi
}
###### Osync specific functions (non shared)
@ -4502,14 +4509,14 @@ function Sync {
if["$resumeInitiator" !="synced"];then
Logger "Trying to resume aborted execution on $($STAT_CMD"${INITIATOR[$__initiatorLastActionFile]}") at task [$resumeInitiator] for initiator. [$resumeCount] previous tries.""NOTICE"
Logger "Trying to resume aborted execution on $($STAT_CMD"${INITIATOR[$__targetLastActionFile]}") as task [$resumeTarget] for target. [$resumeCount] previous tries.""NOTICE"
@ -5491,9 +5498,6 @@ function _SummaryFromRsyncFile {
localdirection="${3}"
INITIATOR_UPDATES_COUNT=0
TARGET_UPDATES_COUNT=0
if[ -f "$summaryFile"];then
whileread -r file;do
# grep -E "^<|^>|^\." = Remove all lines that do not begin with <, > or . to deal with a bizarre bug involving rsync 3.0.6 / CentOS 6 and --skip-compress showing 'adding zip' line for every skipped compressed extension
@ -5516,9 +5520,6 @@ function _SummaryFromDeleteFile {
localdirection="${3}"
INITIATOR_DELETES_COUNT=0
TARGET_DELETES_COUNT=0
if[ -f "$summaryFile"];then
whileread -r file;do
Logger "$direction$replicaPath$file""ALWAYS"
@ -5876,6 +5877,7 @@ function Usage {
echo"--remote-token=\"\" When using ssh filter protection, you must specify the remote token set in ssh_filter.sh"
echo"--instance-id=\"\" Optional sync task name to identify this synchronization task when using multiple targets"
echo"--skip-deletion=\"\" You may skip deletion propagation on initiator or target. Valid values: initiator target initiator,target"
echo"--sync-type=\"\" Allows osync to run in unidirectional sync mode. Valid values: initiator2target, target2initiator"
echo"--destination-mails=\"\" Double quoted list of space separated email addresses to send alerts to"
echo""
echo"Additionaly, you may set most osync options at runtime. eg:"
@ -6021,6 +6023,12 @@ if [ "$MAX_WAIT" == "" ]; then
MAX_WAIT=7200
fi
# Global counters for --summary
INITIATOR_UPDATES_COUNT=0
TARGET_UPDATES_COUNT=0
INITIATOR_DELETES_COUNT=0
TARGET_DELETES_COUNT=0
function GetCommandlineArguments {
localisFirstArgument=true
@ -6029,8 +6037,8 @@ function GetCommandlineArguments {
Usage
fi
for i in "$@";do
case$i in
for i in "${@}";do
case"$i" in
--dry)
_DRYRUN=true
opts=$opts" --dry"
@ -6063,30 +6071,34 @@ function GetCommandlineArguments {