From ba95bf8afe3f824b6a9afe4a1fc2ba59a7b1a379 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Fri, 21 Oct 2022 10:40:10 +0200
Subject: [PATCH] show last backup, prune, verify

---
 check_clientbackup | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/check_clientbackup b/check_clientbackup
index 1c2f5b0..9a62223 100755
--- a/check_clientbackup
+++ b/check_clientbackup
@@ -14,11 +14,14 @@
 # 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
 
 sInstalldir=/opt/imlbackup/client/
+sInstalldir=/home/axel/skripte/client
 sChecker=$sInstalldir/check_clientbackup.sh
 
 
@@ -52,14 +55,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
 
-- 
GitLab