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

show last backup, prune, verify

parent 25517df9
No related branches found
No related tags found
1 merge request!45show last backup, prune, verify
...@@ -14,11 +14,14 @@ ...@@ -14,11 +14,14 @@
# 2022-03-21 v1.7 <axel.hahn@iml.unibe.ch> show databases infos for couchdb2 too # 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-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-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 . $( dirname $0 )/inc_pluginfunctions
sInstalldir=/opt/imlbackup/client/ sInstalldir=/opt/imlbackup/client/
sInstalldir=/home/axel/skripte/client
sChecker=$sInstalldir/check_clientbackup.sh sChecker=$sInstalldir/check_clientbackup.sh
...@@ -52,14 +55,16 @@ echo ...@@ -52,14 +55,16 @@ echo
# that do not have a line "__DB__[type] backup" # that do not have a line "__DB__[type] backup"
for dbtype in $( echo "$result" | grep -o '__DB__[a-z][a-z0-9]*' | sort -u ) for dbtype in $( echo "$result" | grep -o '__DB__[a-z][a-z0-9]*' | sort -u )
do do
echo "$result" | grep "$dbtype\ backup" >/dev/null \ echo "$result" | grep "$dbtype backup" >/dev/null \
&& echo --- local dumps "${dbtype//__DB__/}" \ && echo --- local dumps "${dbtype//__DB__/}" \
&& echo "$result" | grep "$dbtype" | grep -v "\.log" \ && echo "$result" | grep "$dbtype" | grep -v "\.log" \
&& echo && echo
done done
echo "--- transfer:" echo "--- transfer:"
echo "$result" | grep "__[A-Z][A-Z]*__\ " echo "$result" | grep "__[A-Z][A-Z]*__ "
echo
echo "$result" | grep "__LAST__"
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