From 03e7661e11e9f4f0d5be43a33f59c78e537bd48b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 7 Jan 2019 10:35:40 -0600 Subject: [PATCH] Update mysqlbu-scripts.sh --- mysqlbu-scripts.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mysqlbu-scripts.sh b/mysqlbu-scripts.sh index 2c777ee..d4eeadc 100755 --- a/mysqlbu-scripts.sh +++ b/mysqlbu-scripts.sh @@ -61,15 +61,16 @@ DELETE_BACKUP() { echo -e "Backup selected: ${idsCL[Red]}${idsST[Bold]}`date -d"${sbu1a[4]} ${sbu1a[5]//-/:}" +"%A, %B %d, %Y - %I:%M %P"`${idsST[Reset]} ${idsCL[Red]}(${bsz})${idsCL[Default]}" fi - echo "" + echo -e "${idsCL[Red]}(This is a daily base backup, and will result in the full day being DELETED.)" read -n 1 -p "Are you sure you wish to DELETE this backup (y/n)?" choice case "$choice" in [Yy]) - tba=1 - - - echo "$1" + if [ ${#1} = 1 ] || [ ${sbu1a[5]//-/:: -5} = "_BASE" ]; then + + else + + fi echo "" echo -e "${idsCL[LightRed]}Backup has been deleted${idsCL[Default]}" read -n 1 -s -p "Press any key to continue";; @@ -202,6 +203,7 @@ case $1 in if [ "$BASE_BACKUP" != "" ]; then echo -e "${idsCL[Green]}Daily base backup already done. Running incremental backup...${idsCL[Default]}" + sleep 3 $0 backup-incremental exit 1 fi