Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iml-backup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
iml-backup
Commits
41077828
Commit
41077828
authored
3 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
check: shorten increment
parent
1bb72f98
Branches
Branches containing commit
No related tags found
1 merge request
!35
5046 finetune restic params
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
check_clientbackup.sh
+3
-3
3 additions, 3 deletions
check_clientbackup.sh
with
3 additions
and
3 deletions
check_clientbackup.sh
+
3
−
3
View file @
41077828
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment