diff --git a/check_clientbackup b/check_clientbackup index 1c2f5b0c19c03ae0a9e1b4bb1b8fa689ee1f942b..6a323a2a0dc068c9123f1b9b00a632529981091d 100755 --- a/check_clientbackup +++ b/check_clientbackup @@ -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