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

check: shorten increment

parent 1bb72f98
Branches
No related tags found
1 merge request!355046 finetune restic params
......@@ -63,7 +63,6 @@ else
echo
echo ">>> RETURNCODES"
grep "final.*rc=" $logfile
echo
# --- Monitoring Statusline
if [ -f "$(dirname $0)"/transfer.sh ]; then
......@@ -81,7 +80,7 @@ else
# --- rc=0 must be here
if [ $iOK -eq 0 ]; then
echo "ERROR: no OK message was found. Something is messed up :-/"
iError=$iError+1
iError+=1
fi
# --- check age
......@@ -94,10 +93,11 @@ else
if [ $iAge2 -gt $iMaxAgeInHours ]; then
echo "Error: the last backup is older than $iMaxAgeInHours hours"
sShort="$sShort ERROR: backup is older than $iMaxAgeInHours hours "
iError=$iError+1
iError+=1
else
echo "OK: last backup is younger $iMaxAgeInHours hours"
sShort="$sShort OK: backup is younger than $iMaxAgeInHours hours "
iOK+=1
fi
# --- changes (incremental backups only) and backup status infos
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment