From 67c18bcb84e6d88a53ced4e2db8a8e22d5c8641d Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Mon, 21 Mar 2022 16:50:57 +0100
Subject: [PATCH] client_backup: show db infos for couchdb2 too

---
 check_clientbackup | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/check_clientbackup b/check_clientbackup
index 8ef7d9f..46b8b59 100755
--- a/check_clientbackup
+++ b/check_clientbackup
@@ -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-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-21  v1.7  <axel.hahn@iml.unibe.ch> show databases infos for couchdb2 too
 # ======================================================================
 
 . $( dirname $0 )/inc_pluginfunctions
@@ -43,7 +44,7 @@ echo
 
 # show lines __DB__ of backed up databases and skip al database types
 # 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
         echo "$result" | grep "$dbtype\ backup" >/dev/null \
                 && echo --- local dumps "${dbtype//__DB__/}" \
-- 
GitLab