# Discourse 怎么每日自动备份到 Google drive（谷歌云）/或者其他备份平台

**URL:** <https://www.isharkfly.com/t/discourse-google-drive/15813>\
**Category:** Discourse\
**Tags:** discourse\
**Created:** [May 30, 2024, 12:50pm UTC](https://www.isharkfly.com/t/discourse-google-drive/15813 "2024-05-30T12:50:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![CAKE\_NICE](https://www.isharkfly.com/user_avatar/www.isharkfly.com/cake_nice/32/14319_2.png) [@CAKE\_NICE](https://www.isharkfly.com/u/CAKE_NICE)\
**Post date:** [May 30, 2024, 12:50pm UTC](https://www.isharkfly.com/t/discourse-google-drive/15813/1 "2024-05-30T12:50:57Z")

</div>

我现在使用的服务器不太稳定，害怕某天数据丢失，所以想每天备份点数据到谷歌云，因为我没有AWS的S3储存桶

---

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [May 30, 2024, 1:14pm UTC](https://www.isharkfly.com/t/discourse-google-drive/15813/2 "2024-05-30T13:14:13Z")

</div>

根据官方的说法，针对 S3 的支持是原生的。

有些人也可能会通过修改配置来让 Discourse 安装实例能够支持 Google [Use Google Cloud Storage Instead of S3 - Feature - Discourse Meta](https://meta.discourse.org/t/use-google-cloud-storage-instead-of-s3/40046)

更多的，有人还建议用 Google 存储传输工具。

 ![2024-05-30_09-10-46](https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/2X/1/15e340f5016373ce5a505828bfd989c8a9beb61b.png)

感觉这些方式都不是原生支持，这种备份通常配置好以后，大概率很长时间都用不到一次。

同时附件图片的 CDN 支持，也只支持 S3 存储后的 CDN 服务。

## 总结

基于上面的考虑，觉得还是开个 S3 的账号备份到 S3 更好，省得去折腾了。

查看了下上面帖子的内容，都是 8 年钱的东西，一直到现在 Discourse 官方都没有提供 Google 的官方支持，说明 Discourse 官方不愿意做。

这种云配置，只要有一个平台能用就行，都差不多的。

---

<div class="post-metadata">

**Author:** ![CAKE\_NICE](https://www.isharkfly.com/user_avatar/www.isharkfly.com/cake_nice/32/14319_2.png) [@CAKE\_NICE](https://www.isharkfly.com/u/CAKE_NICE)\
**Post date:** [May 30, 2024, 1:15pm UTC](https://www.isharkfly.com/t/discourse-google-drive/15813/3 "2024-05-30T13:15:36Z")

</div>

我害怕AWS的水电账单，我的信用卡之前被反薅了一次，或S3账号有能买卖的吗

---

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [May 30, 2024, 1:36pm UTC](https://www.isharkfly.com/t/discourse-google-drive/15813/4 "2024-05-30T13:36:23Z")

</div>

应该还好吧。

AWS 账单有时候可能会超出预期，但大部分情况还是可以从账户工具上面看到的，基本上我们这边用 AWS 的公司多。

搞 Web 的基本上都在用，除了有时候必须要用微软的 Azure 之外，绝大部分都在用 AWS。

就算是少量的费用也能接受。

你的附件最好使用 CDN 部署，那么你的备份就只有数据库备份了，如果你不这么做，你的备份文件中会包含附件，会导致你的备份文件很大，而且里面的附件在每一个备份中都存在，如果你备份 30 次，等于附件被重复 30 次。

如果使用云存储方式，只有 1 次，能减少你很多存储空间，其实数据库备份的大小很小的，大量的内容都是附件。

AWS 账号肯定是自己申请的了，除非是公司里面申请，下面员工拿来用，但是公司上面也会有监控的，用超了会被叫去说明下情况。

上上月，我们公司部署了一个测试 AI 的用例，准备实例化的时候，另外一个团队因为需要调用大量的计算机来进行机器学习，几天时间就用到了 1K+ 美元。

大部分情况 AWS，S3 就放心用吧，没多少钱，就图个省事。

Discourse 部署上去，后面运营的任务更多。

---

<div class="post-metadata">

**Author:** ![whitewatercn](https://www.isharkfly.com/user_avatar/www.isharkfly.com/whitewatercn/32/2131_2.png) [@whitewatercn](https://www.isharkfly.com/u/whitewatercn)\
**Post date:** [May 31, 2024, 1:37am UTC](https://www.isharkfly.com/t/discourse-google-drive/15813/5 "2024-05-31T01:37:14Z")

</div>

可以限制额度，到额自动提醒，似乎还有到额自动关停

我现在日常使用一个月一刀都不到，可能也是我的站点没啥访问量吧

[https://forum.beginner.center/](https://forum.beginner.center/)

---

<div class="post-metadata">

**Author:** ![VegaMonika](https://www.isharkfly.com/user_avatar/www.isharkfly.com/vegamonika/32/14424_2.png) [@VegaMonika](https://www.isharkfly.com/u/VegaMonika)\
**Post date:** [May 31, 2024, 5:00am UTC](https://www.isharkfly.com/t/discourse-google-drive/15813/6 "2024-05-31T05:00:49Z")

</div>

![image](https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/2X/6/615233a8655d3a6c0e6476b3fcf23301c3ea2d38.jpeg)  
可以自动备份到OneDrive吗

---

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [May 31, 2024, 2:48pm UTC](https://www.isharkfly.com/t/discourse-google-drive/15813/7 "2024-05-31T14:48:09Z")

</div>

貌似不可以，[Microsoft OneDrive: External backup storage - Feature - Discourse Meta](https://meta.discourse.org/t/microsoft-onedrive-external-backup-storage/51244)

曾经有个插件是同步到 dropbox 的。

这些都不能用了，基本上现在就只备份到 S3。

---

<div class="post-metadata">

**Author:** ![Dummy](https://www.isharkfly.com/letter_avatar_proxy/v4/letter/d/7c8e57/32.png) [@Dummy](https://www.isharkfly.com/u/Dummy)\
**Post date:** [November 22, 2024, 7:29am UTC](https://www.isharkfly.com/t/discourse-google-drive/15813/8 "2024-11-22T07:29:06Z")

</div>

> [@whitewatercn](#):
>
> 限制额度

你的限额是怎么弄？

---

<div class="post-metadata">

**Author:** ![whitewatercn](https://www.isharkfly.com/user_avatar/www.isharkfly.com/whitewatercn/32/2131_2.png) [@whitewatercn](https://www.isharkfly.com/u/whitewatercn)\
**Post date:** [November 24, 2024, 3:05pm UTC](https://www.isharkfly.com/t/discourse-google-drive/15813/9 "2024-11-24T15:05:25Z")

</div>

aws的内置功能，进它的账单那里就能设置

---

<div class="post-metadata">

**Author:** ![Dummy](https://www.isharkfly.com/letter_avatar_proxy/v4/letter/d/7c8e57/32.png) [@Dummy](https://www.isharkfly.com/u/Dummy)\
**Post date:** [November 25, 2024, 1:16am UTC](https://www.isharkfly.com/t/discourse-google-drive/15813/10 "2024-11-25T01:16:30Z")

</div>

👍好的谢谢。
