From 9dcc8ea3ae9a080ae8f4d9082795c4a0c1d7772f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 26 Jul 2025 19:35:07 -0500 Subject: [PATCH] Update mysqlbu-scripts.sh --- mysqlbu-scripts.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mysqlbu-scripts.sh b/mysqlbu-scripts.sh index 7e49389..20f55ba 100755 --- a/mysqlbu-scripts.sh +++ b/mysqlbu-scripts.sh @@ -365,10 +365,12 @@ case $1 in for hour in $day/* ; do thr=`sed 's/.*\///' <<< ${hour//_BASE/}` - thr=`sed 's/-mysqldump//g' <<< ${thr}` + thr=`sed 'sc-mysqldump//g' <<< ${thr}` bsz=`du -sh ${hour} | awk '{print $1}'` if [ ${hour: -5} = "_BASE" ]; then echo -e "${idsCL[LightGreen]}${idsST[Bold]} -> `date -d"${tdt} ${thr//-/:}" +"%H:%M"` - FULL BACKUP${idsST[Reset]}${idsCL[LightGreen]} - ${bsz}${idsCL[Default]}" + elif [[ "${hour}" = *"-mysqldump"* ]] + echo -e "${idsCL[Cyan]} -> `date -d"${tdt} ${thr//-/:}" +"%H:%M"` - SQL Dump - ${bsz}${idsCL[Default]}" else echo -e "${idsCL[Cyan]} -> `date -d"${tdt} ${thr//-/:}" +"%H:%M"` - Incremental - ${bsz}${idsCL[Default]}" fi