diff --git a/mm-scripts.sh b/mm-scripts.sh index 4d5461d..c584e47 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -1213,16 +1213,21 @@ SERVICERESTORE(){ done echo -en "\n${idsCL[LightCyan]}Select a backup to restore: ${idsCL[White]}" read restore + echo - echo full + if [ "${rdates[${restore}]}" != "" ]; then + echo -en "Restoring Full Backup first " + tar -cPpf /tmp/cfg-full.tgz ${MM_SERVICE_CFG[sonarr'']} --checkpoint=.5 + echo -e " Done" - for r in ${!rdates[@]}; do - echo ${rdates[${r}]} + for r in ${!rdates[@]}; do + echo ${rdates[${r}]} - [ ${r} -eq ${restore} ] && break - done + [ ${r} -eq ${restore} ] && break + done + fi fi }