# Stop using Amazon s3 for uploads

**URL:** https://meta.discourse.org/t/stop-using-amazon-s3-for-uploads/107286
**Category:** Support
**Created:** [January 23, 2019, 1:26pm UTC](https://meta.discourse.org/t/stop-using-amazon-s3-for-uploads/107286 "2019-01-23T13:26:23Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![mcdanlj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcdanlj/32/131829_2.png) [@mcdanlj](https://meta.discourse.org/u/mcdanlj)
#### Post date: [April 5, 2021, 6:31pm UTC](https://meta.discourse.org/t/stop-using-amazon-s3-for-uploads/107286/10 "2021-04-05T18:31:00Z")

</div>

I tried first to fix migration off S3, and was told after I had completed using my own migration as a test bed for the code i was writing that I had taken completely the wrong approach. This assertion was supported by data corruption in my (large) instance that I migrated off S3 and into local files. Relatively recently, I ended up fixing up broken data in the database by hand, and I don’t have an expectation that I’m done cleaning up after my attempt.

If I were going to start a migration off of S3 onto my own storage today, I would spin up a minio container next to discourse, use minio-client to copy from S3 to my minio container, reconfigure discourse for the new “S3” location of my local minio, and then `posts:remap` or rebake all posts to serve “S3” from my minio container.

Here’s an example of how `posts:remap` should work here. I have a sense that there’s a better example somewhere here, but this should be enough to get started.

> [@How do I move my s3 upload bucket from one provider to another?](https://meta.discourse.org/t/how-do-i-move-my-s3-upload-bucket-from-one-provider-to-another/178484):
>
> 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? Thanks!

---

_[View the full topic](https://meta.discourse.org/t/stop-using-amazon-s3-for-uploads/107286)._
