Update mysqlbu-scripts.sh

This commit is contained in:
2019-01-07 22:55:39 -06:00
parent e576502d16
commit f299a5e238

View File

@@ -70,10 +70,11 @@ DELETE_BACKUP() {
echo -e "${idsCL[Red]}(This will DELETE the entire days worth of backups for the date selected.)"${idsCL[Default]}
delbu=${sbu1}
elif [ "${sbu1a[5]: -5}" = "_BASE" ]; then
echo -e "Backup selected: ${idsST[Bold]}${idsCL[Red]}`date -d"${sbu1a[4]} ${thr//-/:}" +"%A, %B %d, %Y - %I:%M %P"` (${bsz})${idsST[Reset]}"
echo -e "Backup selected: ${idsST[Bold]}${idsCL[Red]}`date -d"${sbu1a[4]} ${thr//-/:}" +"%A, %B %d, %Y - %I:%M %P"` - Full Backup - (${bsz})${idsST[Reset]}"
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]}"
else
echo -e "Backup selected: ${idsST[Bold]}${idsCL[Red]}`date -d"${sbu1a[4]} ${thr//-/:}" +"%A, %B %d, %Y - %I:%M %P"` - Incremental - (${bsz})${idsST[Reset]}"
delbu=${sbu1}
fi
read -p "Are you sure you wish to DELETE this backup (y/N)?" choice