Update mysqlbu-scripts.sh

This commit is contained in:
2025-07-26 19:45:55 -05:00
parent 841ae3497e
commit 8cab331e59

View File

@@ -361,14 +361,14 @@ case $1 in
if [ "${day}" != "${BACKUP_PATH}/latest" ] && [ "${day}" != "${BACKUP_PATH}/mounted" ]; then if [ "${day}" != "${BACKUP_PATH}/latest" ] && [ "${day}" != "${BACKUP_PATH}/mounted" ]; then
tdt=`sed 's/.*\///' <<< $day` tdt=`sed 's/.*\///' <<< $day`
bsz=`du -sh ${day} | awk '{print $1}'` bsz=`du -sh ${day} | awk '{print $1}'`
echo -e "${idsBG[Blue]}${idsCL[White]}-> `date -d"${tdt}" +"%a, %B %d, %Y"` - ${bsz} ${idsCL[Default]}${idsBG[Default]}" echo -e "${idsBG[Blue]}${idsCL[White]}-> `date -d"${tdt}" +"%a, %B %d, %Y"` - ${bsz} ${idsCL[Default]}${idsBG[Default]}"
for hour in $day/* ; do for hour in $day/* ; do
thr=`sed 's/.*\///' <<< ${hour//_BASE/}` thr=`sed 's/.*\///' <<< ${hour//_BASE/}`
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]}"