Update mm-scripts.sh

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

View File

@@ -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
}