Update mysqlbu-scripts.sh

This commit is contained in:
2019-01-07 22:26:56 -06:00
parent f094e8cbe2
commit d3e8a888cb

View File

@@ -162,16 +162,16 @@ DELETE_MENU() {
#tdt=`sed 's/.*\///' <<< $day`
tdt=`echo $day | sed 's/.*\///'`
bsz=`du -sh ${day} | awk '{print $1}'`
echo -e "${idsBG[Blue]}${idsCL[White]}(${tba}) -> `date -d"${tdt}" +"%A, %B %d, %Y"` - ${bsz} ${idsCL[Default]}${idsBG[Default]}"
echo -e "${idsCL[LightYellow]}(${tba})${idsBG[Blue]}${idsCL[White]} -> `date -d"${tdt}" +"%A, %B %d, %Y"` - ${bsz} ${idsCL[Default]}${idsBG[Default]}"
tbb=0
for hour in $day/* ; do
#thr=`sed 's/.*\///' <<< ${hour//_BASE/}`
thr=`echo ${hour//_BASE/} | sed 's/.*\///'`
bsz=`du -sh ${hour} | awk '{print $1}'`
if [ ${hour: -5} = "_BASE" ]; then
echo -e "${idsCL[Blue]}(${tba}${abet[${tbb}]})${idsCL[LightGreen]}${idsST[Bold]} -> `date -d"${tdt} ${thr//-/:}" +"%I:%M %P"` - FULL BACKUP${idsST[Reset]}${idsCL[LightGreen]} - ${bsz}${idsCL[Default]}"
echo -e "${idsCL[LightYellow]}(${tba}${abet[${tbb}]})${idsCL[LightGreen]}${idsST[Bold]} -> `date -d"${tdt} ${thr//-/:}" +"%I:%M %P"` - FULL BACKUP${idsST[Reset]}${idsCL[LightGreen]} - ${bsz}${idsCL[Default]}"
else
echo -e "${idsCL[Blue]}(${tba}${abet[${tbb}]})${idsCL[Cyan]} -> `date -d"${tdt} ${thr//-/:}" +"%I:%M %P"` - Incremental - ${bsz}${idsCL[Default]}"
echo -e "${idsCL[LightYellow]}(${tba}${abet[${tbb}]})${idsCL[Cyan]} -> `date -d"${tdt} ${thr//-/:}" +"%I:%M %P"` - Incremental - ${bsz}${idsCL[Default]}"
fi
tbb=`expr $tbb + 1`
done