Update mysqlbu-scripts.sh
This commit is contained in:
@@ -37,6 +37,8 @@ ADD_CRONTAB(){
|
|||||||
read -n 1 -s -p "Press any key to continue"
|
read -n 1 -s -p "Press any key to continue"
|
||||||
}
|
}
|
||||||
DELETE_BACKUP() {
|
DELETE_BACKUP() {
|
||||||
|
if [ "$1" = "M" ] || [ "$1" = "m" ]; then MAIN_MENU;
|
||||||
|
elif [ "$1" = "Q" ] || [ "$1" = "q" ]; then EXIT1; fi
|
||||||
declare -A tbus
|
declare -A tbus
|
||||||
tba=1
|
tba=1
|
||||||
for day in $BACKUP_PATH* ; do
|
for day in $BACKUP_PATH* ; do
|
||||||
@@ -69,11 +71,8 @@ DELETE_BACKUP() {
|
|||||||
echo ""
|
echo ""
|
||||||
echo -e "${idsCL[Green]}Backup has been deleted${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Backup has been deleted${idsCL[Default]}"
|
||||||
read -n 1 -s -p "Press any key to continue";;
|
read -n 1 -s -p "Press any key to continue";;
|
||||||
[Mm]) MAIN_MENU;;
|
|
||||||
[Qq]) EXIT1;;
|
* ) DELETE_MENU;;
|
||||||
*) echo "Thats an invaild option,";
|
|
||||||
echo "please select a valid option only.";
|
|
||||||
sleep 1;;
|
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
MAIN_MENU() {
|
MAIN_MENU() {
|
||||||
|
|||||||
Reference in New Issue
Block a user