1
0
mirror of https://github.com/deajan/obackup.git synced 2024-12-04 20:53:41 +01:00

Minor fixes

This commit is contained in:
deajan 2014-03-23 17:46:08 +01:00
parent 4b212311ff
commit bd9664a6ec
2 changed files with 10 additions and 8 deletions

View File

@ -2,7 +2,7 @@
###### Remote (or local) backup script for files & databases
###### (L) 2013 by Ozy de Jong (www.netpower.fr)
###### Config file rev 0211201301
###### Config file rev 0903201401
## ---------- GENERAL BACKUP OPTIONS
@ -58,7 +58,7 @@ REMOTE_PORT=22
## ssh compression should be used unless your remote connection is good enough (LAN)
SSH_COMPRESSION=yes
## Remote rsync executable path. Leave this empty in most cases
REMOTE_RSYNC_PATH=""
RSYNC_REMOTE_PATH=""
## Check for connectivity to remote host before launching remote backup tasks. Be sure the hosts responds to ping. Failing to ping will skip current task.
REMOTE_HOST_PING=yes

View File

@ -3,7 +3,7 @@
###### Remote (or local) backup script for files & databases
###### (L) 2013 by Orsiris "Ozy" de Jong (www.netpower.fr)
OBACKUP_VERSION=1.84RC3
OBACKUP_BUILD=1911201301
OBACKUP_BUILD=2303201401
DEBUG=no
SCRIPT_PID=$$
@ -227,9 +227,11 @@ function SendAlert
fi
else
Log "WARNING: Cannot send alert email (no mutt / mail present) !!!"
rm -f $RUN_DIR/obackup_lastlog.gz
return 1
rm -f $RUN_DIR/obackup_lastlog.gz
fi
if -f $RUN_DIR/obackup_lastlog.gz
then
rm $RUN_DIR/obackup_lastlog.gz
fi
}
@ -1170,7 +1172,7 @@ function Init
then
if [ "$RSYNC_REMOTE_PATH" != "" ]
then
RSYNC_PATH="sudo $(type -p $RSYNC_REMOTE_PATH)/$RSYNC_EXECUTABLE)"
RSYNC_PATH="sudo $RSYNC_REMOTE_PATH/$RSYNC_EXECUTABLE"
else
RSYNC_PATH="sudo $RSYNC_EXECUTABLE"
fi
@ -1178,7 +1180,7 @@ function Init
else
if [ "$RSYNC_REMOTE_PATH" != "" ]
then
RSYNC_PATH="$(type -p $RSYNC_REMOTE_PATH)/$RSYNC_EXECUTABLE)"
RSYNC_PATH="$RSYNC_REMOTE_PATH/$RSYNC_EXECUTABLE"
else
RSYNC_PATH="$RSYNC_EXECUTABLE"
fi