# \`rake uploads:migrate\_to\_s3\` needs some love

**URL:** https://meta.discourse.org/t/rake-uploads-migrate-to-s3-needs-some-love/109497
**Category:** Bug
**Created:** [February 18, 2019, 10:55pm UTC](https://meta.discourse.org/t/rake-uploads-migrate-to-s3-needs-some-love/109497 "2019-02-18T22:55:26Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [February 19, 2019, 12:17am UTC](https://meta.discourse.org/t/rake-uploads-migrate-to-s3-needs-some-love/109497/4 "2019-02-19T00:17:55Z")

</div>

For `GlobalSettings`,

> <https://github.com/discourse/discourse/blob/4f5aebc33812a56c34e553bd18c0cfe7ddc4c3f4/config/discourse_defaults.conf#L7-L13>

Only `SiteSettings` that are marked `shadowed_by_global` can be configured via the env. In this case, `s3_upload_bucket` isn’t.

> [@pfaffman](#):
>
> I don’t understand how the backup and upload buckets get defined from just the S3 bucket.

> <https://github.com/discourse/discourse/blob/4f5aebc33812a56c34e553bd18c0cfe7ddc4c3f4/app/models/site_setting.rb#L129-L131>

Closing this as this isn’t a bug.

---

_[View the full topic](https://meta.discourse.org/t/rake-uploads-migrate-to-s3-needs-some-love/109497)._
