From 4da72b7c823bed25afcb217231569291c78a41b9 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Fri, 22 Mar 2024 16:41:17 +0100 Subject: [PATCH] pdate grep for backup via restic rest --- check_iml_backup_server | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/check_iml_backup_server b/check_iml_backup_server index 3e5a141..9c28caf 100755 --- a/check_iml_backup_server +++ b/check_iml_backup_server @@ -11,11 +11,12 @@ # 2023-12-20 v0.2 <axel.hahn@iml.unibe.ch> # 2023-12-21 v1.0 <axel.hahn@iml.unibe.ch> first version # 2023-12-21 v1.1 <axel.hahn@iml.unibe.ch> Update help text +# 2024-03-22 v1.2 <axel.hahn@iml.unibe.ch> Update grep for backup via restic rest # ====================================================================== . $(dirname $0)/inc_pluginfunctions -export self_APPVERSION=1.1 +export self_APPVERSION=1.2 sInstalldir=/opt/imlbackup/server sScript=storage_helper.sh @@ -69,7 +70,8 @@ EOF function _getServerOfStatus(){ local _key="$1" local _data="$2" - grep "$_key .*| [0-9].* |" <<< "$_data" + # grep "$_key .*| [0-9].* |" <<< "$_data" + grep "$_key .*/" <<< "$_data" } # get count of servers with a given status -- GitLab