Skip to content
Snippets Groups Projects

update grep for backup via restic rest

Merged Hahn Axel (hahn) requested to merge docker-checks into master
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -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
Loading