diff --git a/mm-scripts.sh b/mm-scripts.sh index ad26c64..f7acd1d 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -1160,6 +1160,16 @@ SERVICEBACKUPSTART(){ fi } +SERVICERESTORE(){ + srvc=${1} + BACKUPDIR=${MM_BACKUP_FOLDER}/${srvc} + echo -e "${idsCL[LightCyan]}Select a backup to restore:${idsCL[Default]}" + echo; f=1 + for FILE in ${BACKUPDIR}/*.tgz; do + echo -e "[${f}] ${FILE}" + done +} + SHOWSRVCUPDATES(){ echo -e "${idsCL[White]}${idsST[Bold]}Latest Available Service Releases${idsST[Reset]}${idsCL[Default]}" DIVIDER . lightGreen @@ -1662,6 +1672,7 @@ if [ ! -f ${TMPFOLDER}/mm.update.stop ]; then update) UPDATESERVICE ${2} ${3} ${4};; backup) SERVICEBACKUP ${2} ${3} true;; + restore) SERVICERESTORE ${2} ${3};; *) USAGE;;