mirror of
https://github.com/deajan/obackup.git
synced 2025-02-05 19:03:50 +01:00
Fixed an error if destination doesn't exist. Also fixed remote ping happening even if remote_backup=no
This commit is contained in:
parent
fcd10edeb5
commit
bfaa1c45c9
@ -3,7 +3,7 @@
|
|||||||
###### Remote (or local) backup script for files & databases
|
###### Remote (or local) backup script for files & databases
|
||||||
###### (L) 2013 by Ozy de Jong (www.badministrateur.com)
|
###### (L) 2013 by Ozy de Jong (www.badministrateur.com)
|
||||||
OBACKUP_VERSION=1.84
|
OBACKUP_VERSION=1.84
|
||||||
OBACKUP_BUILD=2306201301
|
OBACKUP_BUILD=1107201301
|
||||||
|
|
||||||
DEBUG=no
|
DEBUG=no
|
||||||
SCRIPT_PID=$$
|
SCRIPT_PID=$$
|
||||||
@ -413,6 +413,7 @@ function CheckSpaceRequirements
|
|||||||
LogError "Local disk space may be insufficient to backup files (available space is lower than non compressed databases)."
|
LogError "Local disk space may be insufficient to backup files (available space is lower than non compressed databases)."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
LOCAL_SQL_SPACE=0
|
||||||
LogError "SQL storage path [$LOCAL_SQL_STORAGE] doesn't exist."
|
LogError "SQL storage path [$LOCAL_SQL_STORAGE] doesn't exist."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -438,6 +439,7 @@ function CheckSpaceRequirements
|
|||||||
LogError "Local disk space may be insufficient to backup files (available space is lower than full backup)."
|
LogError "Local disk space may be insufficient to backup files (available space is lower than full backup)."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
LOCAL_FILE_SPACE=0
|
||||||
LogError "File storage path [$LOCAL_FILE_STORAGE] doesn't exist."
|
LogError "File storage path [$LOCAL_FILE_STORAGE] doesn't exist."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -479,7 +481,7 @@ function CheckTotalExecutionTime
|
|||||||
|
|
||||||
function CheckConnectivityRemoteHost
|
function CheckConnectivityRemoteHost
|
||||||
{
|
{
|
||||||
if [ "$REMOTE_HOST_PING" != "no" ]
|
if [ "$REMOTE_HOST_PING" != "no" ] && [ "$REMOTE_BACKUP" != "no" ]
|
||||||
then
|
then
|
||||||
ping $REMOTE_HOST -c 2 > /dev/null 2>&1
|
ping $REMOTE_HOST -c 2 > /dev/null 2>&1
|
||||||
if [ $? != 0 ]
|
if [ $? != 0 ]
|
||||||
|
Loading…
Reference in New Issue
Block a user