# バックアップ/復元で画像が失われ、ドメイン変更、新規アップロード不可

**URL:** <https://meta.discourse.org/t/images-lost-in-backup-restore-change-of-domain-cant-upload-new/168208>\
**Category:** Product Support\
**Created:** [2020 年 10 月 25 日午後 4:28 UTC](https://meta.discourse.org/t/images-lost-in-backup-restore-change-of-domain-cant-upload-new/168208 "2020-10-25T16:28:56Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [2020 年 10 月 26 日午前 12:35 UTC](https://meta.discourse.org/t/images-lost-in-backup-restore-change-of-domain-cant-upload-new/168208/9 "2020-10-26T00:35:59Z")

</div>

デフォルトでは、バックアップには最適化された画像は含まれません。これらは再作成可能であるためです。これらを含めると、帯域幅とディスク容量が無駄になります。

あなたのケースでは、バックアップ作成前に `include_thumbnails_in_backups` サイト設定を有効にして、それらを含めるようにすれば役立ったでしょう。

別の方法として、リストア後に `rake posts:rebake_uncooked_posts` を実行しても問題ありません。そうでない場合、最適化された画像はバックグラウンドジョブによって再生成されますが、これには時間がかかります… リストアの最後には、その旨を正確に示すログメッセージが表示されます。

---

_[View the full topic](https://meta.discourse.org/t/images-lost-in-backup-restore-change-of-domain-cant-upload-new/168208)._
