# S3 migrations from/to minio problems

**URL:** <https://meta.discourse.org/t/s3-migrations-from-to-minio-problems/97333>\
**Category:** Bug\
**Created:** [September 17, 2018, 9:13am UTC](https://meta.discourse.org/t/s3-migrations-from-to-minio-problems/97333 "2018-09-17T09:13:48Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![hosna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hosna/32/99969_2.png) [@hosna](https://meta.discourse.org/u/hosna)\
**Post date:** [September 17, 2018, 9:13am UTC](https://meta.discourse.org/t/s3-migrations-from-to-minio-problems/97333/1 "2018-09-17T09:13:48Z")

</div>

I recently tried to configure my discourse to use minio according to this topic:

[https://meta.discourse.org/t/setting-up-backup-and-image-uploads-to-minio-s3/95123](https://meta.discourse.org/t/setting-up-backup-and-image-uploads-to-minio-s3/95123)

lets say my discourse domain is `example.com` and my minio endpoint is `minio.example.com` and my bucket name is `test`. I faced the following problems

**1- Migration from local to minio.**

I did this

```plaintext
cd /var/discourse
./launcher enter app
rake uploads:migrate_to_s3
rake posts:rebake

```

It seems all files are migrated to minio however all links in my forum are broken now. they are like this:

```
https://example.com//minio.example.com/test/uploads/the-rest-of-url...

```

instead of

```
https://minio.example.com/test/uploads/the-rest-of-url...

```

**2- Migration from minio to local.**  
I did this:

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

```

And all I can see is only images migrated from minio to local. not any zip or mp4 file.

---

_[View the full topic](https://meta.discourse.org/t/s3-migrations-from-to-minio-problems/97333)._
