mirror of
https://github.com/deajan/obackup.git
synced 2025-01-12 15:13:53 +01:00
Made logging begin before remote checks
This commit is contained in:
parent
e3c9c5cb18
commit
9d057ea95f
@ -5,7 +5,7 @@ PROGRAM="obackup"
|
|||||||
AUTHOR="(C) 2013-2016 by Orsiris de Jong"
|
AUTHOR="(C) 2013-2016 by Orsiris de Jong"
|
||||||
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
|
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
|
||||||
PROGRAM_VERSION=2.0-pre
|
PROGRAM_VERSION=2.0-pre
|
||||||
PROGRAM_BUILD=2016040601
|
PROGRAM_BUILD=2016040602
|
||||||
IS_STABLE=no
|
IS_STABLE=no
|
||||||
|
|
||||||
## FUNC_BUILD=2016040602
|
## FUNC_BUILD=2016040602
|
||||||
@ -2408,16 +2408,18 @@ PreInit
|
|||||||
Init
|
Init
|
||||||
PostInit
|
PostInit
|
||||||
CheckCurrentConfig
|
CheckCurrentConfig
|
||||||
if [ "$REMOTE_OPERATION" == "yes" ]; then
|
|
||||||
GetRemoteOS
|
|
||||||
InitRemoteOSSettings
|
|
||||||
fi
|
|
||||||
DATE=$(date)
|
DATE=$(date)
|
||||||
Logger "--------------------------------------------------------------------" "NOTICE"
|
Logger "--------------------------------------------------------------------" "NOTICE"
|
||||||
Logger "$DRY_WARNING $DATE - $PROGRAM v$PROGRAM_VERSION $BACKUP_TYPE script begin." "NOTICE"
|
Logger "$DRY_WARNING $DATE - $PROGRAM v$PROGRAM_VERSION $BACKUP_TYPE script begin." "NOTICE"
|
||||||
Logger "--------------------------------------------------------------------" "NOTICE"
|
Logger "--------------------------------------------------------------------" "NOTICE"
|
||||||
Logger "Backup instance [$INSTANCE_ID] launched as $LOCAL_USER@$LOCAL_HOST (PID $SCRIPT_PID)" "NOTICE"
|
Logger "Backup instance [$INSTANCE_ID] launched as $LOCAL_USER@$LOCAL_HOST (PID $SCRIPT_PID)" "NOTICE"
|
||||||
|
|
||||||
|
if [ "$REMOTE_OPERATION" == "yes" ]; then
|
||||||
|
GetRemoteOS
|
||||||
|
InitRemoteOSSettings
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $no_maxtime -eq 1 ]; then
|
if [ $no_maxtime -eq 1 ]; then
|
||||||
SOFT_MAX_EXEC_TIME_DB_TASK=0
|
SOFT_MAX_EXEC_TIME_DB_TASK=0
|
||||||
SOFT_MAX_EXEC_TIME_FILE_TASK=0
|
SOFT_MAX_EXEC_TIME_FILE_TASK=0
|
||||||
|
@ -5,7 +5,7 @@ PROGRAM="obackup"
|
|||||||
AUTHOR="(C) 2013-2016 by Orsiris de Jong"
|
AUTHOR="(C) 2013-2016 by Orsiris de Jong"
|
||||||
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
|
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
|
||||||
PROGRAM_VERSION=2.0-pre
|
PROGRAM_VERSION=2.0-pre
|
||||||
PROGRAM_BUILD=2016040601
|
PROGRAM_BUILD=2016040602
|
||||||
IS_STABLE=no
|
IS_STABLE=no
|
||||||
|
|
||||||
source "./ofunctions.sh"
|
source "./ofunctions.sh"
|
||||||
@ -1359,16 +1359,18 @@ PreInit
|
|||||||
Init
|
Init
|
||||||
PostInit
|
PostInit
|
||||||
CheckCurrentConfig
|
CheckCurrentConfig
|
||||||
if [ "$REMOTE_OPERATION" == "yes" ]; then
|
|
||||||
GetRemoteOS
|
|
||||||
InitRemoteOSSettings
|
|
||||||
fi
|
|
||||||
DATE=$(date)
|
DATE=$(date)
|
||||||
Logger "--------------------------------------------------------------------" "NOTICE"
|
Logger "--------------------------------------------------------------------" "NOTICE"
|
||||||
Logger "$DRY_WARNING $DATE - $PROGRAM v$PROGRAM_VERSION $BACKUP_TYPE script begin." "NOTICE"
|
Logger "$DRY_WARNING $DATE - $PROGRAM v$PROGRAM_VERSION $BACKUP_TYPE script begin." "NOTICE"
|
||||||
Logger "--------------------------------------------------------------------" "NOTICE"
|
Logger "--------------------------------------------------------------------" "NOTICE"
|
||||||
Logger "Backup instance [$INSTANCE_ID] launched as $LOCAL_USER@$LOCAL_HOST (PID $SCRIPT_PID)" "NOTICE"
|
Logger "Backup instance [$INSTANCE_ID] launched as $LOCAL_USER@$LOCAL_HOST (PID $SCRIPT_PID)" "NOTICE"
|
||||||
|
|
||||||
|
if [ "$REMOTE_OPERATION" == "yes" ]; then
|
||||||
|
GetRemoteOS
|
||||||
|
InitRemoteOSSettings
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $no_maxtime -eq 1 ]; then
|
if [ $no_maxtime -eq 1 ]; then
|
||||||
SOFT_MAX_EXEC_TIME_DB_TASK=0
|
SOFT_MAX_EXEC_TIME_DB_TASK=0
|
||||||
SOFT_MAX_EXEC_TIME_FILE_TASK=0
|
SOFT_MAX_EXEC_TIME_FILE_TASK=0
|
||||||
|
12
obackup.sh
12
obackup.sh
@ -5,7 +5,7 @@ PROGRAM="obackup"
|
|||||||
AUTHOR="(C) 2013-2016 by Orsiris de Jong"
|
AUTHOR="(C) 2013-2016 by Orsiris de Jong"
|
||||||
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
|
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
|
||||||
PROGRAM_VERSION=2.0-pre
|
PROGRAM_VERSION=2.0-pre
|
||||||
PROGRAM_BUILD=2016040601
|
PROGRAM_BUILD=2016040602
|
||||||
IS_STABLE=no
|
IS_STABLE=no
|
||||||
|
|
||||||
## FUNC_BUILD=2016040602
|
## FUNC_BUILD=2016040602
|
||||||
@ -2298,16 +2298,18 @@ PreInit
|
|||||||
Init
|
Init
|
||||||
PostInit
|
PostInit
|
||||||
CheckCurrentConfig
|
CheckCurrentConfig
|
||||||
if [ "$REMOTE_OPERATION" == "yes" ]; then
|
|
||||||
GetRemoteOS
|
|
||||||
InitRemoteOSSettings
|
|
||||||
fi
|
|
||||||
DATE=$(date)
|
DATE=$(date)
|
||||||
Logger "--------------------------------------------------------------------" "NOTICE"
|
Logger "--------------------------------------------------------------------" "NOTICE"
|
||||||
Logger "$DRY_WARNING $DATE - $PROGRAM v$PROGRAM_VERSION $BACKUP_TYPE script begin." "NOTICE"
|
Logger "$DRY_WARNING $DATE - $PROGRAM v$PROGRAM_VERSION $BACKUP_TYPE script begin." "NOTICE"
|
||||||
Logger "--------------------------------------------------------------------" "NOTICE"
|
Logger "--------------------------------------------------------------------" "NOTICE"
|
||||||
Logger "Backup instance [$INSTANCE_ID] launched as $LOCAL_USER@$LOCAL_HOST (PID $SCRIPT_PID)" "NOTICE"
|
Logger "Backup instance [$INSTANCE_ID] launched as $LOCAL_USER@$LOCAL_HOST (PID $SCRIPT_PID)" "NOTICE"
|
||||||
|
|
||||||
|
if [ "$REMOTE_OPERATION" == "yes" ]; then
|
||||||
|
GetRemoteOS
|
||||||
|
InitRemoteOSSettings
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $no_maxtime -eq 1 ]; then
|
if [ $no_maxtime -eq 1 ]; then
|
||||||
SOFT_MAX_EXEC_TIME_DB_TASK=0
|
SOFT_MAX_EXEC_TIME_DB_TASK=0
|
||||||
SOFT_MAX_EXEC_TIME_FILE_TASK=0
|
SOFT_MAX_EXEC_TIME_FILE_TASK=0
|
||||||
|
Loading…
Reference in New Issue
Block a user