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

client backup: show dumped databases

parent 536e1f94
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
# 2020-04-04 v1.3 <axel.hahn@iml.unibe.ch> set status unknown if never executed # 2020-04-04 v1.3 <axel.hahn@iml.unibe.ch> set status unknown if never executed
# 2022-02-17 v1.4 <axel.hahn@iml.unibe.ch> no tmpfile; show more output to see backed up dirs # 2022-02-17 v1.4 <axel.hahn@iml.unibe.ch> no tmpfile; show more output to see backed up dirs
# 2022-03-07 v1.5 <axel.hahn@iml.unibe.ch> update scan for results in transfer # 2022-03-07 v1.5 <axel.hahn@iml.unibe.ch> update scan for results in transfer
# 2022-03-18 v1.6 <axel.hahn@iml.unibe.ch> show dumped databases
# ====================================================================== # ======================================================================
. $( dirname $0 )/inc_pluginfunctions . $( dirname $0 )/inc_pluginfunctions
...@@ -38,15 +39,21 @@ fi ...@@ -38,15 +39,21 @@ fi
ph.status ph.status
echo "$result" | grep -F "MONITORINFO:" | cut -f 2- -d ':' echo "$result" | grep -F "MONITORINFO:" | cut -f 2- -d ':'
echo
echo "--- localdump:"
echo "$result" | grep -v "STATUS" | cut -f 2- -d ":" | grep "\ backup\ \["
echo echo
# show lines __DB__ of backed up databases and skip al database types
# that do not have a line "__DB__[type] backup"
for dbtype in $( echo "$result" | grep -o '__DB__[a-z]*' | sort -u )
do
echo "$result" | grep "$dbtype\ backup" >/dev/null \
&& echo --- local dumps "${dbtype//__DB__/}" \
&& echo "$result" | grep "$dbtype" | grep -v ".log" \
&& echo
done
echo "--- transfer:" echo "--- transfer:"
echo "$result" | grep "__[A-Z][A-Z]*__\ " echo "$result" | grep "__[A-Z][A-Z]*__\ "
ph.exit ph.exit
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment