mirror of
https://github.com/deajan/obackup.git
synced 2026-02-06 07:05:14 +01:00
More portable quick sync check
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#### MINIMAL-FUNCTION-SET BEGIN ####
|
#### MINIMAL-FUNCTION-SET BEGIN ####
|
||||||
|
|
||||||
## FUNC_BUILD=2016102306
|
## FUNC_BUILD=2016102307
|
||||||
## BEGIN Generic bash functions written in 2013-2016 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
## BEGIN Generic bash functions written in 2013-2016 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
||||||
|
|
||||||
## To use in a program, define the following variables:
|
## To use in a program, define the following variables:
|
||||||
@@ -269,7 +269,7 @@ function SendAlert {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# <OSYNC SPECIFIC>
|
# <OSYNC SPECIFIC>
|
||||||
if [ "$_QUICK_SYNC" -eq 2 ]; then
|
if [ "$_QUICK_SYNC" == "2" ]; then
|
||||||
Logger "Current task is a quicksync task. Will not send any alert." "NOTICE"
|
Logger "Current task is a quicksync task. Will not send any alert." "NOTICE"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
@@ -1368,7 +1368,7 @@ function RsyncPatterns {
|
|||||||
RsyncPatternsFromAdd "include" "$RSYNC_INCLUDE_FROM"
|
RsyncPatternsFromAdd "include" "$RSYNC_INCLUDE_FROM"
|
||||||
fi
|
fi
|
||||||
# Use default include first for quicksync runs
|
# Use default include first for quicksync runs
|
||||||
elif [ "$RSYNC_PATTERN_FIRST" == "include" ] || [ $_QUICK_SYNC -eq 2 ]; then
|
elif [ "$RSYNC_PATTERN_FIRST" == "include" ] || [ "$_QUICK_SYNC" == "2" ]; then
|
||||||
if [ "$RSYNC_INCLUDE_PATTERN" != "" ]; then
|
if [ "$RSYNC_INCLUDE_PATTERN" != "" ]; then
|
||||||
RsyncPatternsAdd "include" "$RSYNC_INCLUDE_PATTERN"
|
RsyncPatternsAdd "include" "$RSYNC_INCLUDE_PATTERN"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user