# Comment migrer manuellement tous les fichiers de S3 vers le serveur EC2 ?

**URL:** https://meta.discourse.org/t/how-to-manually-migrate-all-files-from-s3-back-to-ec2-server/164746
**Category:** Support
**Created:** [Septembre 21, 2020, 5:17 UTC](https://meta.discourse.org/t/how-to-manually-migrate-all-files-from-s3-back-to-ec2-server/164746 "2020-09-21T17:17:47Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Pravi](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@Pravi](https://meta.discourse.org/u/Pravi)
#### Post date: [Septembre 22, 2020, 10:51 UTC](https://meta.discourse.org/t/how-to-manually-migrate-all-files-from-s3-back-to-ec2-server/164746/3 "2020-09-22T10:51:10Z")

</div>

Bonjour, merci pour votre réponse.

> [@pfaffman](#):
>
> Peut-être jeter un œil à [Migration des fichiers depuis S3 vers un stockage local](https://meta.discourse.org/t/migrating-uploads-from-s3-to-local/163903/2), bien que je pense qu’il devrait exister un #howto.

J’ai suivi les mêmes étapes que vous avez mentionnées plus tôt, mais rien ne s’est produit. J’ai fini avec un site dont les images sont brisées. Voir mon sujet précédent :

> [@Migrate\_from\_s3: You must disable S3 uploads before running that task](https://meta.discourse.org/t/migrate-from-s3-you-must-disable-s3-uploads-before-running-that-task/160633/21):
>
> Honestly, I would: put the original environment variables back (including DISCOURSE\_USE\_S3=false) and rebuild open /var/www/discourse/app/models/global\_setting.rb change the use\_s3? method to always return false (as per below) run the migrate-from-s3 task remove the variables completely and rebuild one more time We have someone scheduled to look into it, but this should tide you over meanwhile. On line 96-ish, change the self.use\_s3? method to look like: def self.use\_s3? false end

Seuls certains fichiers ont été migrés depuis S3, pas tous.

```
root@ubuntu-blr-app:/var/www/discourse# rake uploads:migrate_from_s3
Migration des fichiers depuis S3 vers un stockage local pour 'default'...
..Terminé !

```

Donc, je pensais à migrer manuellement tous les fichiers, mais je ne sais pas si c’est possible… ?

---

_[View the full topic](https://meta.discourse.org/t/how-to-manually-migrate-all-files-from-s3-back-to-ec2-server/164746)._
