Update mm-scripts.sh

This commit is contained in:
2023-07-10 22:19:18 -05:00
parent cc2461474c
commit 8693c29f9f

View File

@@ -1197,7 +1197,8 @@ SERVICERESTORE(){
echo -e "[${idsCL[LightCyan]} 1${idsCL[Default]}]${idsCL[White]} ${fulldate} - Full Backup${idsCL[Default]}"
f=2; declare -a rdates
for bakfile in ${BACKUPDIR}/${fcheck}.*.tgz; do
# for bakfile in ${BACKUPDIR}/${fcheck}.*.tgz; do
for bakfile in `find ${BACKUPDIR} -name "${fcheck}.*.tgz" -type f -printf "%f\n" | sort -n`; do
fname=${bakfile##*/}
fdate=${fname#*.}; fdate=${fdate%.*}
rdates[${f}]="${fdate}"