Update mysqlbu-scripts.sh

This commit is contained in:
2019-01-07 10:01:07 -06:00
parent 82666c873f
commit 8b7849e6c3

View File

@@ -51,11 +51,9 @@ DELETE_BACKUP() {
tba=`expr $tba + 1`
done
for x in "${!tbus[@]}"; do printf "[%q]=%q\n" "$x" "${tbus[$x]}" ; done
bsz=`du -sh ${tbus[$1]} | awk '{print $1}'`
IFS=/
sbu1a=(${tbus[$1]})
bsz=`du -sh ${tbus[$1]} | awk '{print $1}'`
if [ ${#1} = 1 ]; then
echo -e "Backup selected: ${idsCL[Red]}${idsST[Bold]}`date -d"${sbu1a[4]}" +"%A, %B %d, %Y"`${idsST[Reset]} ${idsCL[Red]}(${bsz})${idsCL[Default]}"