From 74f6c0fd093697709a910ab09d3385cbeaa6bacb Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 9 Jul 2023 23:07:23 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) 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;;