diff --git a/mm-scripts.sh b/mm-scripts.sh index 6f22449..4d5461d 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -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}"