# Move S3 image to local host

**URL:** https://meta.discourse.org/t/move-s3-image-to-local-host/155991
**Category:** Support
**Created:** [June 26, 2020, 5:46am UTC](https://meta.discourse.org/t/move-s3-image-to-local-host/155991 "2020-06-26T05:46:07Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![markersocial](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markersocial/32/170136_2.png) [@markersocial](https://meta.discourse.org/u/markersocial)
#### Post date: [June 26, 2020, 5:48am UTC](https://meta.discourse.org/t/move-s3-image-to-local-host/155991/2 "2020-06-26T05:48:52Z")

</div>

I think the solution is:

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

```

Then disable site setting:  
disable: enable s3 uploads

Then run:

```plaintext
rake posts:rebake

```

I haven’t tested it though, so you should wait for someone else to confirm.

---

_[View the full topic](https://meta.discourse.org/t/move-s3-image-to-local-host/155991)._
