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

Merge branch '5823-grep-regex-with-spaces' into 'master'

show last backup, prune, verify

See merge request !45
parents 4016c676 90740aa6
No related branches found
No related tags found
1 merge request!45show last backup, prune, verify
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
# 2022-03-21 v1.7 <axel.hahn@iml.unibe.ch> show databases infos for couchdb2 too # 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-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-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 . $( dirname $0 )/inc_pluginfunctions
...@@ -52,14 +54,16 @@ echo ...@@ -52,14 +54,16 @@ echo
# that do not have a line "__DB__[type] backup" # that do not have a line "__DB__[type] backup"
for dbtype in $( echo "$result" | grep -o '__DB__[a-z][a-z0-9]*' | sort -u ) for dbtype in $( echo "$result" | grep -o '__DB__[a-z][a-z0-9]*' | sort -u )
do do
echo "$result" | grep "$dbtype\ backup" >/dev/null \ echo "$result" | grep "$dbtype backup" >/dev/null \
&& echo --- local dumps "${dbtype//__DB__/}" \ && echo --- local dumps "${dbtype//__DB__/}" \
&& echo "$result" | grep "$dbtype" | grep -v "\.log" \ && echo "$result" | grep "$dbtype" | grep -v "\.log" \
&& echo && echo
done done
echo "--- transfer:" echo "--- transfer:"
echo "$result" | grep "__[A-Z][A-Z]*__\ " echo "$result" | grep "__[A-Z][A-Z]*__ "
echo
echo "$result" | grep "__LAST__"
ph.exit ph.exit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment