Update mysqlbu-scripts.sh
This commit is contained in:
@@ -52,6 +52,7 @@ DELETE_BACKUP() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
bsz=`du -sh ${tbus[$1]} | awk '{print $1}'`
|
bsz=`du -sh ${tbus[$1]} | awk '{print $1}'`
|
||||||
|
sbu1=$tbus[$1]
|
||||||
IFS=/
|
IFS=/
|
||||||
sbu1a=(${tbus[$1]})
|
sbu1a=(${tbus[$1]})
|
||||||
unset IFS
|
unset IFS
|
||||||
@@ -63,7 +64,7 @@ DELETE_BACKUP() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
if [ ${#1} = 1 ] || [ ${sbu1a[5]//-/:: -5} = "_BASE" ]; then
|
if [ ${#1} = 1 ] || [ ${sbu1: -5} = "_BASE" ]; then
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user