# 週次自動復元スクリプトを書いた人いますか

**URL:** <https://meta.discourse.org/t/anybody-wrote-a-weekly-auto-restore-script/376877>\
**Category:** Product Support\
**Tags:** backups\
**Created:** [2025 年 8 月 1 日午後 2:42 UTC](https://meta.discourse.org/t/anybody-wrote-a-weekly-auto-restore-script/376877 "2025-08-01T14:42:59Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![elmuerte](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elmuerte/32/456517_2.png) [@elmuerte](https://meta.discourse.org/u/elmuerte)\
**Post date:** [2025 年 8 月 1 日午後 3:28 UTC](https://meta.discourse.org/t/anybody-wrote-a-weekly-auto-restore-script/376877/4 "2025-08-01T15:28:21Z")

</div>

バックアップが実際に問題ないか確認するには？ほとんどの人がリストアテストを実行していないことをご存知でしたか。

もし私がこれを実行するとしたら、バックアップをリストアするために隔離されたDockerコンテナを起動します。このDockerコンテナは、リストアが成功した後、破棄されます。この新しいコンテナは、外部と通信することは許可されません（例：メールを送信しない、新しいコンテンツをダウンロードしないなど）。

バックアップのリストアは、コンテナの実行コマンドで簡単に実行できます。

```plaintext
discourse enable_restore
discourse restore <backup>.tar.gz

```

しかし、検証するためにはサイトと同じコンテナイメージが必要になります…そのため、リストア後にイメージを再構築してから検証するのでしょうか？

---

_[View the full topic](https://meta.discourse.org/t/anybody-wrote-a-weekly-auto-restore-script/376877)._
