# 还有其他方法进行备份和恢复吗？

**URL:** <https://meta.discourse.org/t/any-other-way-to-take-backup-and-restore/47033>\
**Category:** Product Support\
**Created:** [2016 年7 月 9 日 12:57 UTC](https://meta.discourse.org/t/any-other-way-to-take-backup-and-restore/47033 "2016-07-09T12:57:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
发布日期： [2016 年7 月 9 日 22:53 UTC](https://meta.discourse.org/t/any-other-way-to-take-backup-and-restore/47033/2 "2016-07-09T22:53:54Z")

</div>

You can backup and restore with a script:

```bash
# enter the Docker container
/var/discourse/launcher enter app

discourse backup <optional filename>
discourse restore filename

```

You can do even more with that script:

```plaintext
Commands:
  discourse backup # Backup a discourse forum
  discourse disable_readonly # Disable the readonly mode
  discourse disable_restore # Forbid restore operations
  discourse enable_readonly # Enable the readonly mode
  discourse enable_restore # Allow restore operations
  discourse export # Backup a Discourse forum
  discourse export_category # Export a category, all its topics, and all users who posted in those topics
  discourse export_topics # Export topics and all users who posted in that topic. Accepts multiple topic id's
  discourse help [COMMAND] # Describe available commands or one specific command
  discourse import # Restore a Discourse backup
  discourse import_category # Import a category, its topics and the users from the output of the export_category co...
  discourse import_topics # Import topics and their users from the output of the export_topic command
  discourse remap # Remap a string sequence accross all tables
  discourse request_refresh # Ask all clients to refresh the browser
  discourse restore # Restore a Discourse backup
  discourse rollback # Rollback to the previous working state

Options:
  v, [--verbose=VERBOSE]

```

---

_[View the full topic](https://meta.discourse.org/t/any-other-way-to-take-backup-and-restore/47033)._
