You don't need to restore anything here. The config is applied to the Dashboard-network. When you remove the MX from the dashboard and add the new MX, it will fetch the config from the cloud and you are ok.
You only have to make sure the WAN IP (or IPs if you also use WAN2) is set so that the MX can connect to the cloud.
If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.