Update mysqlbu-scripts.sh

This commit is contained in:
2025-07-26 19:46:54 -05:00
parent 81753f7ca0
commit c6c939ee2a

View File

@@ -368,12 +368,12 @@ case $1 in
thr=`sed 's/-mysqldump//g' <<< ${thr}` thr=`sed 's/-mysqldump//g' <<< ${thr}`
bsz=`du -sh ${hour} | awk '{print $1}'` bsz=`du -sh ${hour} | awk '{print $1}'`
if [ ${hour: -5} = "_BASE" ]; then if [ ${hour: -5} = "_BASE" ]; then
echo -e "${idsCL[LightGreen]}${idsST[Bold]} -> `date -d"${tdt} ${thr//-/:}" +"%H:%M"` - Full File Backup${idsST[Reset]}${idsCL[LightGreen]} |--${bsz}${idsCL[Default]}" echo -e "${idsCL[LightGreen]}${idsST[Bold]} -> `date -d"${tdt} ${thr//-/:}" +"%H:%M"` - Full File Backup${idsST[Reset]}${idsCL[LightGreen]} |- ${bsz}${idsCL[Default]}"
elif [[ "${hour}" = *"-mysqldump"* ]]; then elif [[ "${hour}" = *"-mysqldump"* ]]; then
echo -e "${idsCL[LightGreen]}${idsST[Bold]} -> `date -d"${tdt} ${thr//-/:}" +"%H:%M"` - Full SQL Dump${idsST[Reset]}${idsCL[LightGreen]} |--${bsz}${idsCL[Default]}" echo -e "${idsCL[LightGreen]}${idsST[Bold]} -> `date -d"${tdt} ${thr//-/:}" +"%H:%M"` - Full SQL Dump${idsST[Reset]}${idsCL[LightGreen]} |- ${bsz}${idsCL[Default]}"
# echo -e "${idsCL[Cyan]} -> `date -d"${tdt} ${thr//-/:}" +"%H:%M"` - Full SQL Dump |--${bsz}${idsCL[Default]}" # echo -e "${idsCL[Cyan]} -> `date -d"${tdt} ${thr//-/:}" +"%H:%M"` - Full SQL Dump |- ${bsz}${idsCL[Default]}"
else else
echo -e "${idsCL[Cyan]} -> `date -d"${tdt} ${thr//-/:}" +"%H:%M"` - Incremental File |--${bsz}${idsCL[Default]}" echo -e "${idsCL[Cyan]} -> `date -d"${tdt} ${thr//-/:}" +"%H:%M"` - Incremental File |- ${bsz}${idsCL[Default]}"
fi fi
done done
fi fi