Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
icinga-checks
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
icinga-checks
Merge requests
!45
show last backup, prune, verify
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
show last backup, prune, verify
5823-grep-regex-with-spaces
into
master
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
Hahn Axel (hahn)
requested to merge
5823-grep-regex-with-spaces
into
master
2 years ago
Overview
0
Commits
2
Pipelines
0
Changes
1
0
0
Merge request reports
Compare
master
version 1
ba95bf8a
2 years ago
master (base)
and
latest version
latest version
90740aa6
2 commits,
2 years ago
version 1
ba95bf8a
1 commit,
2 years ago
1 file
+
6
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
check_clientbackup
+
6
−
2
View file @ 90740aa6
Edit in single-file editor
Open in Web IDE
Show full file
@@ -14,6 +14,8 @@
# 2022-03-21 v1.7 <axel.hahn@iml.unibe.ch> show databases infos for couchdb2 too
# 2022-03-23 v1.8 <axel.hahn@iml.unibe.ch> FIX: exit with error if backup error occured
# 2022-08-10 v1.9 <axel.hahn@iml.unibe.ch> FIX: mask the dot in .log
# 2022-10-21 v1.10 <axel.hahn@unibe.ch> remove grep: warning: stray \ before white space
# show last backup, prune, verify
# ======================================================================
.
$(
dirname
$0
)
/inc_pluginfunctions
@@ -52,14 +54,16 @@ echo
# that do not have a line "__DB__[type] backup"
for
dbtype
in
$(
echo
"
$result
"
|
grep
-o
'__DB__[a-z][a-z0-9]*'
|
sort
-u
)
do
echo
"
$result
"
|
grep
"
$dbtype
\
backup"
>
/dev/null
\
echo
"
$result
"
|
grep
"
$dbtype
backup"
>
/dev/null
\
&&
echo
---
local
dumps
"
${
dbtype
//__DB__/
}
"
\
&&
echo
"
$result
"
|
grep
"
$dbtype
"
|
grep
-v
"
\.
log"
\
&&
echo
done
echo
"--- transfer:"
echo
"
$result
"
|
grep
"__[A-Z][A-Z]*__
\
"
echo
"
$result
"
|
grep
"__[A-Z][A-Z]*__ "
echo
echo
"
$result
"
|
grep
"__LAST__"
ph.exit
Loading