Revert "Check backup type before remote system URI"

This reverts commit 52161b3faf.
This commit is contained in:
deajan 2017-02-11 11:23:29 +01:00
parent 52161b3faf
commit f4d587f1d1
1 changed files with 28 additions and 30 deletions

View File

@ -7,7 +7,7 @@ PROGRAM="obackup"
AUTHOR="(C) 2013-2017 by Orsiris de Jong"
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
PROGRAM_VERSION=2.1-beta1+dev
PROGRAM_BUILD=2017021101
PROGRAM_BUILD=2017021001
IS_STABLE=no
#### Execution order #__WITH_PARANOIA_DEBUG
@ -1752,7 +1752,6 @@ function Init {
trap TrapStop INT QUIT TERM HUP
trap TrapQuit EXIT
if [ "$BACKUP_TYPE_" == "pull" ] || [ "$BACKUP_TYPE" == "push" ]; then
## Test if target dir is a ssh uri, and if yes, break it down it its values
if [ "${REMOTE_SYSTEM_URI:0:6}" == "ssh://" ] && [ "$BACKUP_TYPE" != "local" ]; then
REMOTE_OPERATION="yes"
@ -1784,7 +1783,6 @@ function Init {
fi
REMOTE_HOST=${hosturi%%:*}
fi
fi
## Add update to default RSYNC_ARGS
RSYNC_ARGS=$RSYNC_ARGS" -u"