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

show clear message on not started/ deleted backups

parent cd86adde
Branches
No related tags found
Loading
...@@ -139,7 +139,7 @@ do ...@@ -139,7 +139,7 @@ do
# echo Age: $iAge s # echo Age: $iAge s
if [ $iDays -lt 0 ]; then if [ $iDays -lt 0 ]; then
color error color error
echo "ERROR: Outdated backup was found! You can delete data for $myserver." echo "ERROR: Outdated backup was found! You can delete data for $myserver. rc=1"
color reset color reset
iErrors=$iErrors+1 iErrors=$iErrors+1
else else
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
# 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 # 2021-11-12 hahn backup status: add handling for backup exitcode
# 2022-07-06 hahn backup status: show clear message on not started/ deleted backups
# ====================================================================== # ======================================================================
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
...@@ -171,6 +172,7 @@ ...@@ -171,6 +172,7 @@
function _getBackupsize(){ function _getBackupsize(){
local size= local size=
test -r "$sStatusDir/${sBackupClient}" && . "$sStatusDir/${sBackupClient}" test -r "$sStatusDir/${sBackupClient}" && . "$sStatusDir/${sBackupClient}"
test -z "$size" && echo "[ no metadata: not started yet or deleted ]"
echo $size echo $size
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment