seeminglee is migrating their S3 upload bucket from AWS to Linode and successfully set up new uploads, but old posts still reference AWS URLs. Falco suggests syncing buckets and using the posts:remap rake task to update URLs in posts. seeminglee tries remapping with full URLs but gets 0 posts remapped. Falco advises using protocol-relative URLs (e.g., //...) and seeminglee tests variations, still with no success. Falco then recommends inspecting Upload objects directly via Rails console to verify the stored URLs: Upload.order(Arel.sql('RANDOM()')).limit(10).pluck(:id, :url). merefield praises the question and advice, suggesting it could become a howto guide. The core issue appears to be matching the exact URL format stored in the database, which may not include the protocol or may have subtle differences preventing the remap from finding matches.
I have setup my upload bucket originally on AWS, but I want to now use Linode. Setup went well and I can see that images are being uploaded to the Linode already.
However, when I look at the old posts, they are still pointing to AWS. How can I move those images to Linode so that I can remove the bucket on AWS?