Update mm-scripts.sh

This commit is contained in:
2023-07-10 22:30:30 -05:00
parent 3604cd3f42
commit 8ee2fbfcb7

View File

@@ -1213,8 +1213,12 @@ SERVICERESTORE(){
done done
echo -en "\n${idsCL[LightCyan]}Select a backup to restore: ${idsCL[White]}" echo -en "\n${idsCL[LightCyan]}Select a backup to restore: ${idsCL[White]}"
read restore 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 for r in ${!rdates[@]}; do
echo ${rdates[${r}]} echo ${rdates[${r}]}
@@ -1223,6 +1227,7 @@ SERVICERESTORE(){
[ ${r} -eq ${restore} ] && break [ ${r} -eq ${restore} ] && break
done done
fi
fi fi
} }