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

client_backup: show db infos for couchdb2 too

parent df4b4656
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
# 2022-02-17 v1.4 <axel.hahn@iml.unibe.ch> no tmpfile; show more output to see backed up dirs # 2022-02-17 v1.4 <axel.hahn@iml.unibe.ch> no tmpfile; show more output to see backed up dirs
# 2022-03-07 v1.5 <axel.hahn@iml.unibe.ch> update scan for results in transfer # 2022-03-07 v1.5 <axel.hahn@iml.unibe.ch> update scan for results in transfer
# 2022-03-18 v1.6 <axel.hahn@iml.unibe.ch> show dumped databases # 2022-03-18 v1.6 <axel.hahn@iml.unibe.ch> show dumped databases
# 2022-03-21 v1.7 <axel.hahn@iml.unibe.ch> show databases infos for couchdb2 too
# ====================================================================== # ======================================================================
. $( dirname $0 )/inc_pluginfunctions . $( dirname $0 )/inc_pluginfunctions
...@@ -43,7 +44,7 @@ echo ...@@ -43,7 +44,7 @@ echo
# show lines __DB__ of backed up databases and skip al database types # show lines __DB__ of backed up databases and skip al database types
# 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]*' | 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__/}" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment