DiscourseフォーラムをDigital Oceanのドロップレットでホストしている際、私が取得したスナップショットがそれぞれ10GBを超えていることに気づきました。これらは投稿もユーザーもゼロのフォーラムです(フォーラムを作成し、スナップショットを取得してからドロップレットを破棄しました)。
馬鹿げた質問かもしれませんが、なぜこれほど大きくなるのでしょうか?
DiscourseフォーラムをDigital Oceanのドロップレットでホストしている際、私が取得したスナップショットがそれぞれ10GBを超えていることに気づきました。これらは投稿もユーザーもゼロのフォーラムです(フォーラムを作成し、スナップショットを取得してからドロップレットを破棄しました)。
馬鹿げた質問かもしれませんが、なぜこれほど大きくなるのでしょうか?
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.
Remember that the 1GB install includes a 2GB swap, so you’re snapshotting OS+Discourse+Swapfile.
Why are you taking a snapshot though?
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?
Admin - Backups - Backup - Download
Store it in a safe place
…
Create new forum
Admin - Settings - Enable restore
Admin - Backups - Upload - Restore
@michaeld これを行う際、復元前に DNS 設定の更新が必要ですか?
はい、そう言えます。そうでないと、復元時にホスト名がフォーラムの一時的な URL に上書きされてしまいます。
あるいは、復元後にそれを変更する(ダウンタイムを最小限に抑える)方法もあります。その場合、復元後に元の URL に再度マッピングし直してください。