Add possibility to add rsync exclusions on quicksync mode
This commit is contained in:
parent
fbc6b5d3c2
commit
4ca9689471
|
@ -1,4 +1,4 @@
|
||||||
## FUNC_BUILD=2016071902-e
|
## FUNC_BUILD=2016071902-f
|
||||||
## BEGIN Generic functions for osync & obackup written in 2013-2016 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
## BEGIN Generic functions for osync & obackup written in 2013-2016 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
||||||
|
|
||||||
## type -p does not work on platforms other than linux (bash). If if does not work, always assume output is not a zero exitcode
|
## type -p does not work on platforms other than linux (bash). If if does not work, always assume output is not a zero exitcode
|
||||||
|
@ -1060,7 +1060,7 @@ function RsyncPatterns {
|
||||||
if [ "$RSYNC_INCLUDE_FROM" != "" ]; then
|
if [ "$RSYNC_INCLUDE_FROM" != "" ]; then
|
||||||
RsyncPatternsFromAdd "include" "$RSYNC_INCLUDE_FROM"
|
RsyncPatternsFromAdd "include" "$RSYNC_INCLUDE_FROM"
|
||||||
fi
|
fi
|
||||||
elif [ "$RSYNC_PATTERN_FIRST" == "include" ]; then
|
elif [ "$RSYNC_PATTERN_FIRST" == "include" ] || [ "$_QUICK_SYNC" == "2" ]; then
|
||||||
RsyncPatternsAdd "include" "$RSYNC_INCLUDE_PATTERN"
|
RsyncPatternsAdd "include" "$RSYNC_INCLUDE_PATTERN"
|
||||||
if [ "$RSYNC_INCLUDE_FROM" != "" ]; then
|
if [ "$RSYNC_INCLUDE_FROM" != "" ]; then
|
||||||
RsyncPatternsFromAdd "include" "$RSYNC_INCLUDE_FROM"
|
RsyncPatternsFromAdd "include" "$RSYNC_INCLUDE_FROM"
|
||||||
|
|
Loading…
Reference in New Issue