# Migrating over to a new instance in new hosting provider

**URL:** <https://meta.discourse.org/t/migrating-over-to-a-new-instance-in-new-hosting-provider/134876>\
**Category:** Self-hosting\
**Tags:** hosting\
**Created:** [2 december 2019 om 15:53 UTC](https://meta.discourse.org/t/migrating-over-to-a-new-instance-in-new-hosting-provider/134876 "2019-12-02T15:53:13Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![owrh](https://avatars.discourse-cdn.com/v4/letter/o/f17d59/32.png) [@owrh](https://meta.discourse.org/u/owrh)\
**Post date:** [2 december 2019 om 15:53 UTC](https://meta.discourse.org/t/migrating-over-to-a-new-instance-in-new-hosting-provider/134876/1 "2019-12-02T15:53:13Z")

</div>

We have a forum running in AWS, on a custom domain with SSL via LetsEncrypt and we’re looking to move to Digital Ocean, ideally without downtime. Is there a recommended best practice as I’ve encountered a variety of problems?

I first tried setting up the new instance and enabling LetsEncrypt but this caused all sorts of problems (e.g. `SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE`) – presumably because I was trying to set up the new instance using the same domain name in the configuration as the existing live site.

I then tried setting up the instance without SSL (but with the instance configured on the same domain name) and restoring a backup from the live site. This time the restore process failed with what looked like issues around the domain name.

Setting up a new instance on a new domain is really easy (thank you! 🙏) but trying to create a new instance that I can then just do a DNS switch over to in order to migrate appears to be really hard. Unless, that is, I’m just doing it wrong!

Any help would be appreciated.

---

_[View the full topic](https://meta.discourse.org/t/migrating-over-to-a-new-instance-in-new-hosting-provider/134876)._
