Update mysqlbu-scripts.sh

This commit is contained in:
2019-01-07 22:13:51 -06:00
parent 4f27f22aa7
commit f05650919c

View File

@@ -60,9 +60,6 @@ DELETE_BACKUP() {
sbu1=${tbus[$1]} sbu1=${tbus[$1]}
thr=`echo ${sbu1//_BASE/} | sed 's/.*\///'` thr=`echo ${sbu1//_BASE/} | sed 's/.*\///'`
bsz=`du -sh ${sbu1} | awk '{print $1}'` bsz=`du -sh ${sbu1} | awk '{print $1}'`
echo "HERE '${sbu1}' '${thr}'"
IFS=/ IFS=/
sbu1a=(${tbus[$1]}) sbu1a=(${tbus[$1]})
unset IFS unset IFS
@@ -77,7 +74,7 @@ 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=${sbu1}
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