Skip to content
Snippets Groups Projects
Commit cd86adde authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

backup status: add handling for backup exitcode

parent 7e5735a2
Branches
No related tags found
No related merge requests found
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
# 2021-06-18 hahn store backup status in status files ... do not grep frpom logs # 2021-06-18 hahn store backup status in status files ... do not grep frpom logs
# 2021-06-21 hahn use single status file; added backup size # 2021-06-21 hahn use single status file; added backup size
# 2021-01-22 hahn show inactive backups in status page; colored lines by status # 2021-01-22 hahn show inactive backups in status page; colored lines by status
# 2021-11-12 hahn backup status: add handling for backup exitcode
# ====================================================================== # ======================================================================
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
...@@ -324,11 +325,16 @@ ...@@ -324,11 +325,16 @@
test $bIsInactive -eq 1 && sStatusRun="$(color disabled)D" test $bIsInactive -eq 1 && sStatusRun="$(color disabled)D"
# check values # check values
if [ $iend -gt 0 -a $iagehours -gt $iMaxbackupAge -a $bIsInactive -eq 0 ]; then if [ $iLastStatus -gt 0 ]; then
ierrors=$ierrors+1 ierrors=$ierrors+1
sStatusRun="$(color error)E" sStatusRun="$(color error)E"
else
if [ $iend -gt 0 -a $iagehours -gt $iMaxbackupAge -a $bIsInactive -eq 0 ]; then
ierrors=$ierrors+1
sStatusRun="$(color error)E"
fi
fi fi
if [ $iend -eq 0 ]; then if [ $iend -eq 0 ]; then
tstart="-" tstart="-"
tend="-" tend="-"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment