# Why are Digital Ocean Discourse snapshots so large?

**URL:** <https://meta.discourse.org/t/why-are-digital-ocean-discourse-snapshots-so-large/108206>\
**Category:** Self-hosting\
**Tags:** hosting\
**Created:** [February 2, 2019, 12:27pm UTC](https://meta.discourse.org/t/why-are-digital-ocean-discourse-snapshots-so-large/108206 "2019-02-02T12:27:38Z")\
**Posts on this page:** 7\
**Page:** 1

## AI-generated summary

The discussion revolves around the large size of Digital Ocean snapshots for Discourse forums. [DonaldH](/t/-/108206/1) noticed that his snapshots were over 10GB, despite having no posts or users. [Falco](/t/-/108206/2) explained that Digital Ocean snapshots are the size of the disk, which includes the OS, Discourse, and swap file. He recommended using Discourse backups instead for preserving the state in a smaller file.

[Stephen](/t/-/108206/3) added that the 1GB install includes a 2GB swap, contributing to the large snapshot size. [DonaldH](/t/-/108206/4) revealed that he took the snapshot to easily recreate the droplet when needed, but was looking for a better method.

[Michaeld](/t/-/108206/5) suggested downloading the Discourse backup, storing it safely, and restoring it when needed. [ZachS](/t/-/108206/6) asked if DNS settings need to be updated before restoring, and [michaeld](/t/-/108206/7) advised that it's necessary to avoid rewriting the hostname to a temporary URL.

<div class="post-metadata">

**Author:** ![DonaldH](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@DonaldH](https://meta.discourse.org/u/DonaldH)\
**Post date:** [February 2, 2019, 12:27pm UTC](https://meta.discourse.org/t/why-are-digital-ocean-discourse-snapshots-so-large/108206/1 "2019-02-02T12:27:38Z")

</div>

I just noticed that the snapshots I have taken of Discourse forums hosted on Digital Ocean droplets are over 10GB each. And these are forums that have zero posts or users (I created the forums, took snapshots and then destroyed the droplets).

This might be a stupid question, but why are they so large?

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [February 2, 2019, 8:15pm UTC](https://meta.discourse.org/t/why-are-digital-ocean-discourse-snapshots-so-large/108206/2 "2019-02-02T20:15:30Z")

</div>

> [@DonaldH](#):
>
> This might be a stupid question, but why are they so large

A digital Ocean snapshot will always be the size of the disk. And that is a server provider feature, it has nothing to do with Discourse.

If you want to preserve Discourse state in a smaller file, use the Discourse backups, available in the admin panel.

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [February 3, 2019, 2:42pm UTC](https://meta.discourse.org/t/why-are-digital-ocean-discourse-snapshots-so-large/108206/3 "2019-02-03T14:42:33Z")

</div>

> [@DonaldH](#):
>
> This might be a stupid question, but why are they so large?

Remember that the 1GB install includes a 2GB swap, so you’re snapshotting OS+Discourse+Swapfile.

Why are you taking a snapshot though?

---

<div class="post-metadata">

**Author:** ![DonaldH](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@DonaldH](https://meta.discourse.org/u/DonaldH)\
**Post date:** [February 3, 2019, 3:04pm UTC](https://meta.discourse.org/t/why-are-digital-ocean-discourse-snapshots-so-large/108206/4 "2019-02-03T15:04:01Z")

</div>

I don’t need the forum online at the moment so I destroyed the droplet to save money. I created the snapshot so I could easily recreate the droplet when I want to put the forum back online. Is there a better way to do this?

---

<div class="post-metadata">

**Author:** ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)\
**Post date:** [February 3, 2019, 3:10pm UTC](https://meta.discourse.org/t/why-are-digital-ocean-discourse-snapshots-so-large/108206/5 "2019-02-03T15:10:39Z")

</div>

Admin - Backups - Backup - Download

Store it in a safe place  
…

Create new forum  
Admin - Settings - Enable restore  
Admin - Backups - Upload - Restore

---

<div class="post-metadata">

**Author:** ![ZachS](https://avatars.discourse-cdn.com/v4/letter/z/a6a055/32.png) [@ZachS](https://meta.discourse.org/u/ZachS)\
**Post date:** [May 4, 2020, 8:58pm UTC](https://meta.discourse.org/t/why-are-digital-ocean-discourse-snapshots-so-large/108206/6 "2020-05-04T20:58:52Z")

</div>

@michaeld when doing this, do any of the DNS settings need to be updated before restoring?

---

<div class="post-metadata">

**Author:** ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)\
**Post date:** [May 4, 2020, 9:36pm UTC](https://meta.discourse.org/t/why-are-digital-ocean-discourse-snapshots-so-large/108206/7 "2020-05-04T21:36:15Z")

</div>

I would say yes because otherwise the restore will rewrite your hostname to the temporary URL of your forum.

Alternatively, you could change it afterwards (less downtime) and remap the URL back to the original one after the restore.
