# 新しいインポートスクリプト作成中のデータベースクリーンアップ

**URL:** <https://meta.discourse.org/t/database-cleanup-while-writing-a-new-import-script/94134>\
**Category:** Development\
**Created:** [2018 年 8 月 7 日午後 4:59 UTC](https://meta.discourse.org/t/database-cleanup-while-writing-a-new-import-script/94134 "2018-08-07T16:59:17Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2018 年 8 月 7 日午後 7:11 UTC](https://meta.discourse.org/t/database-cleanup-while-writing-a-new-import-script/94134/4 "2018-08-07T19:11:40Z")

</div>

I always take a backup of an empty Discourse install with some tweaks made (admin user, allow\_restore enabled, permalink settings, some adjusted limits to allow for a good import) and restore it when I want to start over again. Flushing redis is a good idea as well.

---

_[View the full topic](https://meta.discourse.org/t/database-cleanup-while-writing-a-new-import-script/94134)._
