Update mysqlbu-scripts.sh

This commit is contained in:
2019-01-07 10:35:40 -06:00
parent 8b7849e6c3
commit 03e7661e11

View File

@@ -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