附件那些需要下载转存吗?
还是说直接改设置?
附件那些需要下载转存吗?
还是说直接改设置?
没有这么简单,貌似还需要修改设置:Enable hidden setting to include S3 uploads in the backups - Self-Hosting - Discourse Meta
First, Enable hidden setting to include S3 uploads in the backups
Then make a backup. Then restore it. I recommend restoring it on a fresh server. You can use your existing yml file, but delete USE_S3, the upload bucket and the stuff that uploads assets to S3.
You Move a Discourse site to another VPS with rsync so that you’ll have your SSL certificates. I’d `–exclude postgres_*".
Then you can Restore a backup from the command line.
貌似官方的建议是先在备份的时候启用远程附件备份的方式把备份全部拉到本地来。
这样的备份包应该很大,然后再在不同的服务器上进行恢复。
等恢复完成后再改 DNS。
hhhhh,我不用改服务器,就是改备份的存储方式。
看帖子是要改成存包含s3的备份,再改设置才可以
。
是这的。
在备份恢复的时候,官方的建议是在新服务器上进行恢复。
我觉得官方的这个建议是对的,因为可能在恢复的时候出现文件的不匹配。
当文件出现不匹配的时候,会发现附件无法识别,而且附件的链接是错的。
好吧,好像用不了 rake uploads:migrate_from_s3