Digital Ocean droplet backups of Discourse backups?

AI-generated summary

The discussion revolves around the best approach for restoring a Discourse site after downtime, comparing Discourse backups (stored in S3) and Digital Ocean droplet backups. Nacho_Caballero outlines their current setup—daily Discourse backups and weekly droplet backups—and seeks guidance on the optimal restore procedure, particularly when the admin panel is inaccessible. They consider downloading a Discourse backup from S3 and restoring it on a new droplet, which would require reconfiguring app.yml, Nginx, DNS, and mailer settings. omarfilip suggests using a DigitalOcean floating IP to simplify DNS management and confirms that droplet backups include all data, making them viable for restoration. They also recommend taking manual snapshots before major changes for easier recovery.

I had a few hours of downtime in my site today due to some docker/nginx issue and at some point I considered restoring from a backup.

Luckily, I was able to get it working again, but it made me wonder what would have been the right restore procedure.

I currently have daily automatic Discourse backups set up with S3 and also weekly Digital Ocean droplet backups, but if for some reason I can’t access my discourse admin panel, how should I restore a previous backup?

I’m assuming I’d have to do this:

  1. Download the latest backup from S3
  2. Create a new Digital Ocean droplet
  3. install Discourse from scratch
  4. Restore the backup

I’d also have to replace a previously saved version of my app.yml and /etc/nginx/sites-available/default and modify my DNS and mailer settings? Is there a simpler way?

I guess another option would be to restore a droplet backup directly (which I assume would include the discourse data), but since these happen only weekly, I’d lose a lot more data.

One option could be to set up daily/hourly backups with weap.io or snapshooter.io. Is this recommended?

I’d love to know if there’s anything I’m missing or if I should consider another approach.

Using a floating IP at DigitalOcean is the way to go:

Yes, a droplet backup includes everything.

Before major changes, I take a droplet snapshot at DigitalOcean, so that if things go wrong, it’s easy to restore.