使用 s3:备份上传设置

I just followed the instructions to configure automatic backups and set up file and image uploads to s3

I am a little confused about the following setting:
backup with uploads include uploads in scheduled backups. Disabling this will only backup the database.

So if I have separate buckets for upload and backup, should I check this or not? I wasn’t sure if this would somehow try to store my uploads in the backup bucket…?

By default backups do not include uploads stored on S3 as it’s usually a waste of bandwidth a disk space. You need to enable the hidden include_s3_uploads_in_backups setting in order to change this behavior.

But if I understand your question correctly you don’t want your backups to contain uploads stored on S3, so you don’t have to change any settings.

6 个赞

Thanks! I wonder if it’s worth putting an explanatory note on that setting to that effect?

What explanatory note are you proposing? Can you write it out?

您好
我也有同样的问题,并且我确认这并不明显。
现在是 2023 年,“备份包含上传”的设置默认被选中。

我在 S3 上有两个存储桶用于备份和上传,我想知道如果我启用或禁用该设置来恢复或迁移备份,会发生什么。
如果未启用,我所有的上传文件是否能正确匹配 S3 上的上传文件?
如果已启用,我的上传文件是否会在 S3 上被覆盖或重复?

也许这个文件里有一些答案:
line 351 "当备份恢复到带有 S3 上传的站点时,它会将项目上传到存储桶"

您是否建议始终选择“备份包含上传”,因为如果出现任何问题,这是一种更具弹性的方式?

1 个赞

隐藏的站点设置 include_s3_uploads_in_backups 仍处于禁用状态。

我相信如果您启用了 backup with uploads 但未同时启用 include_s3_uploads_in_backups,则 backup with uploads 设置将仅包含本地上传。