Update mysqlbu-scripts.sh
This commit is contained in:
@@ -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]}
|
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]}"
|
delbu="/${sbu1a[1]}/${sbu1a[2]}${sbu1a[3]}/${sbu1a[4]}"
|
||||||
else
|
else
|
||||||
delbu="/${sbu1a[1]}/${sbu1a[2]}${sbu1a[3]}/${sbu1a[4]}/${sbu1a[5]}"
|
delbu="/${sbu1a[1]}/${sbu1a[2]}/${sbu1a[3]}/${sbu1a[4]}/${sbu1a[5]}"
|
||||||
fi
|
fi
|
||||||
read -p "Are you sure you wish to DELETE this backup (y/n)?" choice
|
read -p "Are you sure you wish to DELETE this backup (y/n)?" choice
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
[Yy])
|
[Yy])
|
||||||
echo "rm -rf ${delbu}"
|
rm -rf ${delbu}
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${idsCL[LightRed]}Backup has been deleted${idsCL[Default]}"
|
echo -e "${idsCL[LightRed]}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";;
|
||||||
|
|||||||
Reference in New Issue
Block a user