This is great. I just followed the guide in post #39 and everything worked. I have just one suggestion and 2 questions.
Suggestion:
From what I’ve read, you should make the CDN files bucket publicly available and the backup bucket private. So I created 2 buckets and left the backup one private while making the files bucket public with a custom domain. It just meant that I had to put 2 different paths in the 2 boxes under admin.
I’ve seen a lot of folks put their backups as a path of their top level bucket, am I thinking incorrectly about this? Or is this just an idiosyncrasy with CF R2?
Q1:
I added the ‘DISCOURSE_INCLUDE_S3_UPLOADS_IN_BACKUPS: true’ in my app.yml and rebuilt, but when I go to backups and click the backup button I still get the pop up telling me that uploads won’t be included. Is that just because the pop up does not have any logic under it or is something not right?
Q2:
If I want current uploads moved to R2 what are the concise commands?
I’ve looked around and tried:
./launcher enter app
rake uploads:migrate_to_s3
rake posts:rebake_uncooked_posts
But it looks like that first rake command only works if I set the S3 options in the app.yml file. Is that correct?
If I do that, will R2 continue to work?