# Migrating uploads from S3 to local

**URL:** https://meta.discourse.org/t/migrating-uploads-from-s3-to-local/163903
**Category:** Self-hosting
**Tags:** s3
**Created:** [September 13, 2020, 10:41pm UTC](https://meta.discourse.org/t/migrating-uploads-from-s3-to-local/163903 "2020-09-13T22:41:36Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [September 13, 2020, 10:58pm UTC](https://meta.discourse.org/t/migrating-uploads-from-s3-to-local/163903/2 "2020-09-13T22:58:27Z")

</div>

Why aren’t you using the built-in rake task? afaik it’s called uploads:migrate\_from\_s3

```plaintext
cd /var/discourse
./launcher enter app
rake uploads:migrate_from_s3

```

Then disable the `enable s3 uploads` site setting:

And finally rebake:

```
rake posts:rebake

```

---

_[View the full topic](https://meta.discourse.org/t/migrating-uploads-from-s3-to-local/163903)._
