Update mysqlbu-scripts.sh

This commit is contained in:
2019-01-07 10:53:11 -06:00
parent bb3076f5ef
commit 9d80b8ee36

View File

@@ -68,12 +68,12 @@ DELETE_BACKUP() {
echo -e "${idsCL[Red]}(This is a daily base backup, and will result in the full day being DELETED.)"${idsCL[Default]}
delbu="/${sbu1a[1]}/${sbu1a[2]}${sbu1a[3]}/${sbu1a[4]}"
else
delbu="/${sbu1a[1]}/${sbu1a[2]}${sbu1a[3]}/${sbu1a[4]}/${sbu1a[5]}"
delbu="/${sbu1a[1]}/${sbu1a[2]}/${sbu1a[3]}/${sbu1a[4]}/${sbu1a[5]}"
fi
read -p "Are you sure you wish to DELETE this backup (y/n)?" choice
case "$choice" in
[Yy])
echo "rm -rf ${delbu}"
rm -rf ${delbu}
echo ""
echo -e "${idsCL[LightRed]}Backup has been deleted${idsCL[Default]}"
read -n 1 -s -p "Press any key to continue";;