Update mysqlbu-scripts.sh
This commit is contained in:
@@ -365,10 +365,12 @@ case $1 in
|
||||
|
||||
for hour in $day/* ; do
|
||||
thr=`sed 's/.*\///' <<< ${hour//_BASE/}`
|
||||
thr=`sed 's/-mysqldump//g' <<< ${thr}`
|
||||
thr=`sed 'sc-mysqldump//g' <<< ${thr}`
|
||||
bsz=`du -sh ${hour} | awk '{print $1}'`
|
||||
if [ ${hour: -5} = "_BASE" ]; then
|
||||
echo -e "${idsCL[LightGreen]}${idsST[Bold]} -> `date -d"${tdt} ${thr//-/:}" +"%H:%M"` - FULL BACKUP${idsST[Reset]}${idsCL[LightGreen]} - ${bsz}${idsCL[Default]}"
|
||||
elif [[ "${hour}" = *"-mysqldump"* ]]
|
||||
echo -e "${idsCL[Cyan]} -> `date -d"${tdt} ${thr//-/:}" +"%H:%M"` - SQL Dump - ${bsz}${idsCL[Default]}"
|
||||
else
|
||||
echo -e "${idsCL[Cyan]} -> `date -d"${tdt} ${thr//-/:}" +"%H:%M"` - Incremental - ${bsz}${idsCL[Default]}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user