# Pourquoi les instantanés Discourse de Digital Ocean sont-ils si volumineux ?

**URL:** https://meta.discourse.org/t/why-are-digital-ocean-discourse-snapshots-so-large/108206
**Category:** Self-hosting
**Tags:** hosting
**Created:** [Février 2, 2019, 12:27 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

<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: [Février 2, 2019, 12:27 UTC](https://meta.discourse.org/t/why-are-digital-ocean-discourse-snapshots-so-large/108206/1 "2019-02-02T12:27:38Z")

</div>

Je viens de remarquer que les instantanés que j’ai pris des forums Discourse hébergés sur des droplets Digital Ocean dépassent 10 Go chacun. Et ce sont des forums qui n’ont aucun message ni utilisateur (j’ai créé les forums, pris des instantanés, puis détruit les droplets).

Cela peut sembler une question stupide, mais pourquoi sont-ils si volumineux ?

---

<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: [Février 2, 2019, 8:15 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: [Février 3, 2019, 2:42 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: [Février 3, 2019, 3:04 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: [Février 3, 2019, 3:10 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: [Mai 4, 2020, 8:58 UTC](https://meta.discourse.org/t/why-are-digital-ocean-discourse-snapshots-so-large/108206/6 "2020-05-04T20:58:52Z")

</div>

@michaeld Lors de cette opération, faut-il mettre à jour l’un des paramètres DNS avant la restauration ?

---

<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: [Mai 4, 2020, 9:36 UTC](https://meta.discourse.org/t/why-are-digital-ocean-discourse-snapshots-so-large/108206/7 "2020-05-04T21:36:15Z")

</div>

Je dirais oui, car sinon la restauration réécrira votre nom d’hôte avec l’URL temporaire de votre forum.

Sinon, vous pouvez le modifier après coup (moins de temps d’arrêt) et réaffecter l’URL vers l’originale une fois la restauration terminée.
