# Can Discourse migrate what is already in in locally when it is connected to S3 storage?

**URL:** <https://meta.discourse.org/t/can-discourse-migrate-what-is-already-in-in-locally-when-it-is-connected-to-s3-storage/321747>\
**Category:** Self-hosting\
**Tags:** uploads, s3\
**Created:** [2024年八月15日 02:48 UTC](https://meta.discourse.org/t/can-discourse-migrate-what-is-already-in-in-locally-when-it-is-connected-to-s3-storage/321747 "2024-08-15T02:48:17Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pangbo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pangbo/32/538562_2.png) [@pangbo](https://meta.discourse.org/u/pangbo)\
**Post date:** [2024年八月15日 08:17 UTC](https://meta.discourse.org/t/can-discourse-migrate-what-is-already-in-in-locally-when-it-is-connected-to-s3-storage/321747/4 "2024-08-15T08:17:39Z")

</div>

您可以参考

> [@How to run rake tasks?](https://meta.discourse.org/t/how-to-run-rake-tasks/203314):
>
> I’m currently reading this [article](https://meta.discourse.org/t/setting-up-file-and-image-uploads-to-s3/7229), where I will need to execute: rake uploads:migrate\_to\_s3 rake posts:rebake Before that, I will need to enter inside the container. # docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 7a5093d6af50 local\_discourse/app "/sbin/boot" 5 hours ago Up 5 hours 0.0.0.0:80-\>80/tcp, :::80-\>80/tcp, 0.0.0.0:443-\>443/tcp, :::443-\>443/tcp app …

---

_[View the full topic](https://meta.discourse.org/t/can-discourse-migrate-what-is-already-in-in-locally-when-it-is-connected-to-s3-storage/321747)._
