# Sintesi su come spostare Discourse su un disco più grande

**URL:** <https://meta.discourse.org/t/simple-summary-of-how-to-move-discourse-to-a-larger-disk/415635>\
**Category:** Product Support\
**Created:** [24 Ottobre 2026, 9:59am UTC](https://meta.discourse.org/t/simple-summary-of-how-to-move-discourse-to-a-larger-disk/415635 "2026-10-24T09:59:52Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**Post date:** [25 Ottobre 2026, 2:30am UTC](https://meta.discourse.org/t/simple-summary-of-how-to-move-discourse-to-a-larger-disk/415635/4 "2026-10-25T02:30:18Z")

</div>

Allora, penso che vorresti consultare il primo documento a cui ho fatto riferimento. In pratica, sposteresti gli upload e i backup sul disco montato, ma manterresti il database sull’unità principale.

> [@Discourse](#):
>
> ### Sposta `/var/discourse/shared` sul volume
> 
> Per ottenere le migliori prestazioni, manterremo `postgres_data` sull’unità principale e sposteremo il resto dei dati sul nuovo volume collegato.
> 
> Accedi come root ed esegui questi comandi dal tuo server:
> 
> ```plaintext
> mv /var/discourse/shared/standalone/postgres_data /var/postgres_data_discourse
> mv /var/discourse/shared /mnt/volume_nyc1_05
> 
> ```
> 
> Assicurati di sostituire `volume_nyc1_05` con il nome del tuo volume.
> 
> ### Modifica `app.yml` per riflettere le modifiche
> 
> Apri il file `/var/discourse/containers/app.yml` nel tuo editor preferito e cerca questo blocco:
> 
> ```plaintext
> ## The Docker container is stateless; all data is stored in /shared
> volumes:
> - volume:
> host: /var/discourse/shared/standalone
> guest: /shared
> - volume:
> host: /var/discourse/shared/standalone/log/var-log
> guest: /var/log
> 
> ```
> 
> Sostituisci il blocco precedente con:
> 
> ```plaintext
> ## The Docker container is stateless; all data is stored in /shared
> volumes:
> - volume:
> host: /mnt/volume_nyc1_05/shared/standalone
> guest: /shared
> - volume:
> host: /mnt/volume_nyc1_05/shared/standalone/log/var-log
> guest: /var/log
> - volume:
> host: /var/postgres_data_discourse
> guest: /shared/postgres_data
> 
> ```
> 
> Assicurati di sostituire `volume_nyc1_05` con il nome del tuo volume.
> 
> Salva il file `app.yml` e ricostruisci il contenitore.
> 
> ```plaintext
> /var/discourse/launcher rebuild app
> 
> ```

Quindi, a meno che io non stia fraintendendo, è questo ciò che stai cercando di fare? (E naturalmente, fai un backup prima di procedere)

---

_[View the full topic](https://meta.discourse.org/t/simple-summary-of-how-to-move-discourse-to-a-larger-disk/415635)._
