Update mysqlbu-scripts.sh
This commit is contained in:
@@ -38,6 +38,7 @@ ADD_CRONTAB(){
|
|||||||
}
|
}
|
||||||
DELETE_BACKUP() {
|
DELETE_BACKUP() {
|
||||||
declare -A tbus
|
declare -A tbus
|
||||||
|
tba=1
|
||||||
for day in $BACKUP_PATH* ; do
|
for day in $BACKUP_PATH* ; do
|
||||||
tbus[${tba}]=$day
|
tbus[${tba}]=$day
|
||||||
tbb=0
|
tbb=0
|
||||||
@@ -47,7 +48,7 @@ DELETE_BACKUP() {
|
|||||||
done
|
done
|
||||||
tba=`expr $tba + 1`
|
tba=`expr $tba + 1`
|
||||||
done
|
done
|
||||||
|
printf '%s\n' "${tbus[@]}"
|
||||||
sbu1=${tbus[$1]}
|
sbu1=${tbus[$1]}
|
||||||
|
|
||||||
echo -e "Backup selected: ${sbu1}"
|
echo -e "Backup selected: ${sbu1}"
|
||||||
|
|||||||
Reference in New Issue
Block a user