Update mm-scripts.sh
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user