mirror of
https://github.com/deajan/obackup.git
synced 2025-01-12 15:13:53 +01:00
Fixed wrong variable names
This commit is contained in:
parent
dbe0020c85
commit
6fb84d1441
@ -8,7 +8,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=2016080702
|
PROGRAM_BUILD=2016080703
|
||||||
IS_STABLE=yes
|
IS_STABLE=yes
|
||||||
|
|
||||||
source "./ofunctions.sh"
|
source "./ofunctions.sh"
|
||||||
@ -947,7 +947,7 @@ function FilesBackup {
|
|||||||
# Backup non recursive directories
|
# Backup non recursive directories
|
||||||
#for BACKUP_TASK in $FILE_BACKUP_TASKS
|
#for BACKUP_TASK in $FILE_BACKUP_TASKS
|
||||||
#do
|
#do
|
||||||
Logger "Beginning file backup of [$BACKUP_TASK]." "NOTICE"
|
Logger "Beginning file backup of [$backupTask]." "NOTICE"
|
||||||
if [ "$ENCRYPTION" == "yes" ]; then
|
if [ "$ENCRYPTION" == "yes" ]; then
|
||||||
Duplicity "$backupTask" "recurse"
|
Duplicity "$backupTask" "recurse"
|
||||||
else
|
else
|
||||||
@ -962,7 +962,7 @@ function FilesBackup {
|
|||||||
## Backup files at root of DIRECTORIES_RECURSE_LIST directories
|
## Backup files at root of DIRECTORIES_RECURSE_LIST directories
|
||||||
#for BACKUP_TASK in $RECURSIVE_DIRECTORY_LIST
|
#for BACKUP_TASK in $RECURSIVE_DIRECTORY_LIST
|
||||||
#do
|
#do
|
||||||
Logger "Beginning non recursive file backup of [$BACKUP_TASK]." "NOTICE"
|
Logger "Beginning non recursive file backup of [$backupTask]." "NOTICE"
|
||||||
if [ "$ENCRYPTION" == "yes" ]; then
|
if [ "$ENCRYPTION" == "yes" ]; then
|
||||||
Duplicity "$backupTask" "no-recurse"
|
Duplicity "$backupTask" "no-recurse"
|
||||||
else
|
else
|
||||||
@ -977,7 +977,7 @@ function FilesBackup {
|
|||||||
# Backup sub directories of recursive directories
|
# Backup sub directories of recursive directories
|
||||||
#for BACKUP_TASK in $FILE_RECURSIVE_BACKUP_TASKS
|
#for BACKUP_TASK in $FILE_RECURSIVE_BACKUP_TASKS
|
||||||
#do
|
#do
|
||||||
Logger "Beginning recursive file backup of [$BACKUP_TASK]." "NOTICE"
|
Logger "Beginning recursive file backup of [$backupTask]." "NOTICE"
|
||||||
if [ "$ENCRYPTION" == "yes" ]; then
|
if [ "$ENCRYPTION" == "yes" ]; then
|
||||||
Duplicity "$backupTask" "recurse"
|
Duplicity "$backupTask" "recurse"
|
||||||
else
|
else
|
||||||
@ -993,11 +993,11 @@ function CheckTotalExecutionTime {
|
|||||||
|
|
||||||
#### Check if max execution time of whole script as been reached
|
#### Check if max execution time of whole script as been reached
|
||||||
if [ $SECONDS -gt $SOFT_MAX_EXEC_TIME_TOTAL ]; then
|
if [ $SECONDS -gt $SOFT_MAX_EXEC_TIME_TOTAL ]; then
|
||||||
Logger "Max soft execution time of the whole backup exceeded while backing up [$BACKUP_TASK]." "ERROR"
|
Logger "Max soft execution time of the whole backup exceeded." "ERROR"
|
||||||
WARN_ALERT=1
|
WARN_ALERT=1
|
||||||
SendAlert
|
SendAlert
|
||||||
if [ $SECONDS -gt $HARD_MAX_EXEC_TIME_TOTAL ] && [ $HARD_MAX_EXEC_TIME_TOTAL -ne 0 ]; then
|
if [ $SECONDS -gt $HARD_MAX_EXEC_TIME_TOTAL ] && [ $HARD_MAX_EXEC_TIME_TOTAL -ne 0 ]; then
|
||||||
Logger "Max hard execution time of the whole backup exceeded while backing up [$BACKUP_TASK], stopping backup process." "CRITICAL"
|
Logger "Max hard execution time of the whole backup exceeded, stopping backup process." "CRITICAL"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user