Update mysqlbu-scripts.sh
This commit is contained in:
@@ -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]}
|
echo -e "${idsCL[Red]}(This will DELETE the entire days worth of backups for the date selected.)"${idsCL[Default]}
|
||||||
delbu=${sbu1}
|
delbu=${sbu1}
|
||||||
elif [ "${sbu1a[5]: -5}" = "_BASE" ]; then
|
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]}
|
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
|
||||||
|
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}
|
delbu=${sbu1}
|
||||||
fi
|
fi
|
||||||
read -p "Are you sure you wish to DELETE this backup (y/N)?" choice
|
read -p "Are you sure you wish to DELETE this backup (y/N)?" choice
|
||||||
|
|||||||
Reference in New Issue
Block a user