Update mysqlbu-scripts.sh

This commit is contained in:
2019-01-07 08:09:40 -06:00
parent b82c9d571e
commit dfe535592b

View File

@@ -103,12 +103,14 @@ DELETE_MENU() {
echo -e "${idsCL[LightYellow]}========== Select Which Backup to Delete ==========${idsCL[Default]}"
tba=1
for day in $BACKUP_PATH* ; do
tdt=`sed 's/.*\///' <<< $day`
#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]}"
tbb=1
for hour in $day/* ; do
thr=`sed 's/.*\///' <<< ${hour//_BASE/}`
#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[LightGreen]}${idsST[Bold]}${tba}${tbb}) ) -> `date -d"${tdt} ${thr//-/:}" +"%I:%M %P"` - FULL BACKUP${idsST[Reset]}${idsCL[LightGreen]} - ${bsz}${idsCL[Default]}"