mirror of
https://github.com/deajan/obackup.git
synced 2025-05-10 20:23:41 +02:00
Code cleanup
This commit is contained in:
parent
61cf6d4d2b
commit
5d2494d7a7
@ -36,10 +36,6 @@ TOTAL_FILES_SIZE=0 # Total file size of $DIRECTORIES_TO_BACKUP
|
|||||||
# /dev/shm/obackup_run_local_$SCRIPT_PID Output of command to be run localy
|
# /dev/shm/obackup_run_local_$SCRIPT_PID Output of command to be run localy
|
||||||
# /dev/shm/obackup_run_remote_$SCRIPT_PID Output of command to be run remotely
|
# /dev/shm/obackup_run_remote_$SCRIPT_PID Output of command to be run remotely
|
||||||
|
|
||||||
# Alert flags
|
|
||||||
soft_alert_total=0
|
|
||||||
error_alert=0
|
|
||||||
|
|
||||||
function Log
|
function Log
|
||||||
{
|
{
|
||||||
echo "TIME: $SECONDS - $1" >> "$LOG_FILE"
|
echo "TIME: $SECONDS - $1" >> "$LOG_FILE"
|
||||||
@ -1024,6 +1020,9 @@ function Usage
|
|||||||
# Command line argument flags
|
# Command line argument flags
|
||||||
dryrun=0
|
dryrun=0
|
||||||
silent=0
|
silent=0
|
||||||
|
# Alert flags
|
||||||
|
soft_alert_total=0
|
||||||
|
error_alert=0
|
||||||
|
|
||||||
if [ $# -eq 0 ]
|
if [ $# -eq 0 ]
|
||||||
then
|
then
|
||||||
@ -1077,6 +1076,8 @@ then
|
|||||||
LogError "No configuration file provided."
|
LogError "No configuration file provided."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
LogError "Environment not suitable to run obackup."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $error_alert -ne 0 ]
|
if [ $error_alert -ne 0 ]
|
||||||
|
Loading…
Reference in New Issue
Block a user