mirror of
https://github.com/deajan/obackup.git
synced 2025-01-12 23:23:53 +01:00
Some minor improvements ported from osync
This commit is contained in:
parent
625a65bee0
commit
039e057915
@ -9,7 +9,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.1-dev
|
PROGRAM_VERSION=2.1-dev
|
||||||
PROGRAM_BUILD=2016113001
|
PROGRAM_BUILD=2016120401
|
||||||
IS_STABLE=no
|
IS_STABLE=no
|
||||||
|
|
||||||
source "./ofunctions.sh"
|
source "./ofunctions.sh"
|
||||||
@ -68,7 +68,7 @@ function TrapQuit {
|
|||||||
exitcode=2
|
exitcode=2
|
||||||
else
|
else
|
||||||
RunAfterHook
|
RunAfterHook
|
||||||
Logger "$PROGRAM finshed without errors." "NOTICE"
|
Logger "$PROGRAM finshed." "ALWAYS"
|
||||||
exitcode=0
|
exitcode=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1707,24 +1707,20 @@ 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." "ALWAYS"
|
||||||
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"
|
||||||
|
|
||||||
GetLocalOS
|
GetLocalOS
|
||||||
InitLocalOSSettings
|
InitLocalOSDependingSettings
|
||||||
CheckRunningInstances
|
CheckRunningInstances
|
||||||
PreInit
|
PreInit
|
||||||
Init
|
Init
|
||||||
CheckEnvironment
|
CheckEnvironment
|
||||||
PostInit
|
PostInit
|
||||||
CheckCurrentConfig
|
CheckCurrentConfig
|
||||||
|
GetRemoteOS
|
||||||
if [ "$REMOTE_OPERATION" == "yes" ]; then
|
InitRemoteOSDependingSettings
|
||||||
GetRemoteOS
|
|
||||||
InitRemoteOSSettings
|
|
||||||
fi
|
|
||||||
InitRsyncSettings
|
|
||||||
|
|
||||||
if [ $no_maxtime == true ]; then
|
if [ $no_maxtime == true ]; then
|
||||||
SOFT_MAX_EXEC_TIME_DB_TASK=0
|
SOFT_MAX_EXEC_TIME_DB_TASK=0
|
||||||
|
Loading…
Reference in New Issue
Block a user