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

show a single line only on skipped db type

parent 71d7c0fd
Branches
No related tags found
1 merge request!101Desktop notification
......@@ -150,11 +150,14 @@ else
fi
echo ">>> Summary of database backup actions:"
cat $logfile | grep "__[A-Z][A-Z]*__" | grep '__DB__' | filterColor
cat $logfile | grep '__DB__' | filterColor | cut -f 1 -d ' ' | sort -u | while read -r dbprefix
do
( grep "$dbprefix SKIP" $logfile || grep "$dbprefix " $logfile ) | cut -f 2- -d ':'
done
echo
echo ">>> Summary of transfer actions:"
cat $logfile | grep "__[A-Z][A-Z]*__" | grep -E '__(BACKUP|PRUNE|REPO|VERIFY)__' | filterColor
cat $logfile | grep -E '__(BACKUP|PRUNE|REPO|VERIFY)__' | filterColor
echo
sShort="$sShort - OK: $iOK ... Errors: $iError"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment