好的,我想我有点搞混了。
我认为最理想的做法是将所有上传都保存在本地,并将备份(zip 文件)保存到 S3。这样,即使服务器出现任何问题,备份也可用在 S3 上,而且备份本身是独立的,没有依赖项,因此应该很容易在新服务器上恢复。
所以,如果我理解正确的话,我应该遵循这些说明:
If you want to stop using s3, then you can enter the rails console and set
SiteSetting.include_s3_uploads_in_backups=true
Then take a backup, make sure that you do not have s3 configured in your app.yml and restore the backup. I think that this will restore backups to local.
然后
- 在管理员 → 设置 → 文件中禁用“启用上传到 S3”选项
- 在管理员 → 设置 → 备份页面启用“备份到 S3”选项
这是正确的吗?
这是让我感到困惑的部分,为什么我需要将 S3 配置放在 app.yml 文件中?