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

Merge branch 'docker-checks' into 'master'

update grep for backup via restic rest

See merge request !252
parents 8b2cd400 4da72b7c
No related branches found
No related tags found
1 merge request!252update grep for backup via restic rest
...@@ -11,11 +11,12 @@ ...@@ -11,11 +11,12 @@
# 2023-12-20 v0.2 <axel.hahn@iml.unibe.ch> # 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.0 <axel.hahn@iml.unibe.ch> first version
# 2023-12-21 v1.1 <axel.hahn@iml.unibe.ch> Update help text # 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 . $(dirname $0)/inc_pluginfunctions
export self_APPVERSION=1.1 export self_APPVERSION=1.2
sInstalldir=/opt/imlbackup/server sInstalldir=/opt/imlbackup/server
sScript=storage_helper.sh sScript=storage_helper.sh
...@@ -69,7 +70,8 @@ EOF ...@@ -69,7 +70,8 @@ EOF
function _getServerOfStatus(){ function _getServerOfStatus(){
local _key="$1" local _key="$1"
local _data="$2" local _data="$2"
grep "$_key .*| [0-9].* |" <<< "$_data" # grep "$_key .*| [0-9].* |" <<< "$_data"
grep "$_key .*/" <<< "$_data"
} }
# get count of servers with a given status # get count of servers with a given status
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment