Update mysqlbu-scripts.sh
This commit is contained in:
@@ -40,6 +40,19 @@ DELETE_BACKUP() {
|
|||||||
read -n 1 -p "Are you sure you wish to DELETE this backup (y/n)?" choice
|
read -n 1 -p "Are you sure you wish to DELETE this backup (y/n)?" choice
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
[Yy])
|
[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 "$1"
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${idsCL[Green]}Backup has been deleted${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Backup has been deleted${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user