From 55b78b2b1aec4a71339b8fdf3744b76fbd5fe79f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 7 Jan 2019 21:17:30 -0600 Subject: [PATCH] Update mysqlbu-scripts.sh --- mysqlbu-scripts.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mysqlbu-scripts.sh b/mysqlbu-scripts.sh index 98375e6..cbb33ec 100755 --- a/mysqlbu-scripts.sh +++ b/mysqlbu-scripts.sh @@ -51,7 +51,8 @@ DELETE_BACKUP() { tba=`expr $tba + 1` done - bsz=`du -sh ${tbus[$1]} | awk '{print $1}'` + thr=`echo ${tbus[$1]//_BASE/} | sed 's/.*\///'` + bsz=`du -sh ${thr | awk '{print $1}'` sbu1=$tbus[$1] IFS=/ sbu1a=(${tbus[$1]}) @@ -62,10 +63,6 @@ DELETE_BACKUP() { else echo -e "Backup selected: ${idsCL[Red]}${idsST[Bold]}`date -d"${sbu1a[4]} ${sbu1a[5]//-/:}" +"%A, %B %d, %Y - %I:%M %P"`${idsST[Reset]} ${idsCL[Red]}(${bsz})${idsCL[Default]}" fi - - echo "" - echo "here: '${sbu1a[5]: -5}'" - echo ${sbu1a[5]: -5} echo "" if [ ${#1} = 1 ] || [ "${sbu1a[5]: -5}" = "_BASE" ]; then echo -e "${idsCL[Red]}(This is a daily base backup, and will result in the full day being DELETED.)"${idsCL[Default]}