# 如何在 Discourse 服务器上制作备份文件和数据库并上传到 Google Drive？

**URL:** https://meta.discourse.org/t/how-to-make-backup-files-and-database-on-a-discourse-server-and-upload-to-google-drive/122067
**Category:** Feature
**Created:** [2019年七月4日 05:16 UTC](https://meta.discourse.org/t/how-to-make-backup-files-and-database-on-a-discourse-server-and-upload-to-google-drive/122067 "2019-07-04T05:16:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Phuong\_SuSu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/phuong_susu/32/148042_2.png) [@Phuong\_SuSu](https://meta.discourse.org/u/Phuong_SuSu)
#### Post date: [2019年七月4日 05:16 UTC](https://meta.discourse.org/t/how-to-make-backup-files-and-database-on-a-discourse-server-and-upload-to-google-drive/122067/1 "2019-07-04T05:16:20Z")

</div>

通常在我的 VPS 上，我有一个命令可以自动备份我所有 **WordPress 站点** 的数据库和文件到 Google Drive。  
我想知道如何对 Discourse 做类似的操作？它的文件存放在哪里？如何将其数据库导出为 gzip 文件？又如何导入呢？

---

<div class="post-metadata">

### Author: ![TheBestPessimist](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thebestpessimist/32/247704_2.png) [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)
#### Post date: [2019年七月4日 09:10 UTC](https://meta.discourse.org/t/how-to-make-backup-files-and-database-on-a-discourse-server-and-upload-to-google-drive/122067/2 "2019-07-04T09:10:29Z")

</div>

您是否尝试过使用 Discourse 提供的搜索功能？（作为未来的 Discourse 管理员，您首先应该学会使用 Discourse，以便能够指导您的用户。）

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/a/9a6d5f5dd02eba2a0f6fde4b1074dd0949632823.png)

这回答了您的问题：[Use rclone to sync backups to Dropbox or Google Drive](https://meta.discourse.org/t/how-to-sync-your-backups-to-cloud-storage-alternative-method/97294)

---

<div class="post-metadata">

### Author: ![Phuong\_SuSu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/phuong_susu/32/148042_2.png) [@Phuong\_SuSu](https://meta.discourse.org/u/Phuong_SuSu)
#### Post date: [2019年七月4日 11:04 UTC](https://meta.discourse.org/t/how-to-make-backup-files-and-database-on-a-discourse-server-and-upload-to-google-drive/122067/3 "2019-07-04T11:04:09Z")

</div>

太感谢了 ^^ 我之前不知道要搜索哪些关键词，现在知道了 😃

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2019年七月4日 16:21 UTC](https://meta.discourse.org/t/how-to-make-backup-files-and-database-on-a-discourse-server-and-upload-to-google-drive/122067/4 "2019-07-04T16:21:35Z")

</div>


