I have a production server with several WordPress sites (and other systems) that I’m using MainWP on to manage them. The exact same setup is also available as an acceptance environment.
Whenever I need to update the acceptence environment, I make a snapshot of the production server, restore that to the acceptance server and run a script that adjusts a coupld of things such as WordPress URL’s, hostname of the server and other non-worpress related things. It’s basically an exact copy of the production environment and afterwards some configuration settings are changed. This makes sure you have the most optimal situation to test software deployments, before actually deploying to production servers.
The WordPress sites on the acceptance environments are also managed by MainWP, however, if I clone the production environment the way I described above, the WordPress sites will be in a disconnected state after the clone. When I press the reconnect button, the following message appears:
Public key already set. Please deactivate & reactivate the MainWP Child plugin and try again.
Are there options available to allow me to clone a production environment to an acceptance environment (as described above) without losing that connection? Perhaps saving and restoring some data first using wp-cli or something of the sort? Or perhaps other ways?