Moving files to different bucket S3 [AWS]


(Aman Jagga) #1

For some reason , I had to change the S3 bucket. So now all my new media is pointing to the new bucket but still the old media files are pointing to old bucket name.

I can copy all the files from old bucket to new bucket but how do I make old files point to new bucket?


(Jay Pfaffman) #2

See Rebake all posts matching a pattern

rake posts:rebake_match["upload://"]

Might do it.


(Aman Jagga) #3

yes, it should work but it didn’t work for me