Update DNS settings when restoring forum?

AI-generated summary

ZachS is seeking advice on how to temporarily shut down a Discourse forum hosted on Digital Ocean to save costs, asking whether to use a snapshot or backup, and whether DNS or Mailgun settings need updating during restoration. TheDarkWizard suggests that while snapshots incur small costs, backups are safer and allow re-running the setup process — and notes DNS and Mailgun settings should remain unchanged if the hostname and credentials are preserved. RGJ clarifies that since a new droplet gets a new IP, DNS must be updated. Also, Mailgun settings (and SSL certs) are not restored from backup — they must be reconfigured manually, ideally by preserving the original app.yml file alongside the backup. For cost-saving, RGJ recommends backups stored externally rather than snapshots. In summary: use a backup, update DNS after restoring to a new droplet, and manually reconfigure Mailgun and SSL using the saved app.yml.

A client has a forum hosted on Digital Ocean, but doesn’t need to use it for a few months and wants to save the cost of hosting in the meantime. A couple questions about this:

  1. Is it better to create a snapshot or a backup before destroying the droplet?
  2. At any point in the process of creating the snapshot/backup, destroying the droplet, and then restoring the forum on a new droplet, do the DNS or mailgun settings need to be updated in any way?

@pfaffman thoughts?

It depends if you are trying to have convience or save money. Digital Ocean does charge for snapshots, even if the price is small: https://docs.digitalocean.com/products/snapshots/. If tghe site is small, I’d also take a backup just incase.

Assuming your mailgun access did not change, that should not be required. As for DNS, if the hostname has not changed, when you spin it back up, it should also be fine. I would do an backup/import if only because that way you can have the setup process run again :slight_smile:

Hope this helps!

  1. since you want to save costs, you can better create a backup. You can store it on your own computer / Dropbox / whatever and not be billed. However, please note #2b below.

2a) A new droplet implies a new IP address so you do need to update DNS.
2b) Restoring a backup restores everything EXCEPT for mailgun settings (and a few other things like your SSL certificate). You do need to configure Mailgun using your app.yml or the setup script. I think it is the most convenient to save the original app.yml next to the backup.