Update mysqlbu-scripts.sh

This commit is contained in:
2019-01-07 09:08:09 -06:00
parent 539ee13383
commit fc2c8a49a2

View File

@@ -40,6 +40,19 @@ DELETE_BACKUP() {
read -n 1 -p "Are you sure you wish to DELETE this backup (y/n)?" choice
case "$choice" in
[Yy])
declare -A tbus
tba=1
for day in $BACKUP_PATH* ; do
abet[${tba}]=$day
tbb=0
for hour in $day/* ; do
echo -e "${idsCL[Cyan]}(${tba}${abet[${tbb}]}) -> `date -d"${tdt} ${thr//-/:}" +"%I:%M %P"` - Incremental - ${bsz}${idsCL[Default]}"
abet[${tba}${abet[${tbb}]}]=$hour
tbb=`expr $tbb + 1`
done
tba=`expr $tba + 1`
done
echo "$1"
echo ""
echo -e "${idsCL[Green]}Backup has been deleted${idsCL[Default]}"