# 备份和媒体使用不同的 S3 区域

**URL:** <https://meta.discourse.org/t/different-s3-region-for-backups-and-media/106348>\
**Category:** Support\
**Created:** [2019年一月12日 10:31 UTC](https://meta.discourse.org/t/different-s3-region-for-backups-and-media/106348 "2019-01-12T10:31:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![barreeeiroo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barreeeiroo/32/165264_2.png) [@barreeeiroo](https://meta.discourse.org/u/barreeeiroo)\
**Post date:** [2019年一月12日 10:31 UTC](https://meta.discourse.org/t/different-s3-region-for-backups-and-media/106348/1 "2019-01-12T10:31:27Z")

</div>

Hello

Our community would like to start using S3 in order to store media files and backups, to prevent the VPS to be full soon.  
I checked settings and the it seems like credentials are shared for both settings (`enable s3 uploads` and `backup location`)

However, I would like to know if it’s possible to host, for example, Backups on Oregon and Media Files on Dublin  
Is there any way to achieve this?

---

<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:** [2019年一月12日 10:58 UTC](https://meta.discourse.org/t/different-s3-region-for-backups-and-media/106348/2 "2019-01-12T10:58:57Z")

</div>

Yes. Its dangerous to have media and backup in one endpoint. If we lose it, we lose everything. So I also would like to be able to configure different endpoints for backup and media.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年一月12日 11:21 UTC](https://meta.discourse.org/t/different-s3-region-for-backups-and-media/106348/3 "2019-01-12T11:21:22Z")

</div>

Why does it matter? Have a policy to copy files to glacier or a different S3 region after the files arrive on S3, if you need that kind of redundancy.

---

<div class="post-metadata">

**Author:** ![barreeeiroo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barreeeiroo/32/165264_2.png) [@barreeeiroo](https://meta.discourse.org/u/barreeeiroo)\
**Post date:** [2019年一月12日 11:23 UTC](https://meta.discourse.org/t/different-s3-region-for-backups-and-media/106348/4 "2019-01-12T11:23:00Z")

</div>

How can that be done?

_Sorry if my question is too simple, I’m switching all my servers to AWS as it provides better options than GCP 😓_

---

<div class="post-metadata">

**Author:** ![saurabhp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saurabhp/32/125182_2.png) [@saurabhp](https://meta.discourse.org/u/saurabhp)\
**Post date:** [2019年一月14日 05:33 UTC](https://meta.discourse.org/t/different-s3-region-for-backups-and-media/106348/5 "2019-01-14T05:33:35Z")

</div>

Hi,  
If you want to backup to a different region in AWS, you can use `Cross Region Replication`. This will be backup your content in one S3 bucket in X region to another S3 bucket in Y region.  
You can go through links here for details and how-to:

> **[Replicating objects within and across Regions - Amazon Simple Storage Service](https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html)**
>
> Set up and configure replication to allow automatic, asynchronous copying of objects across Amazon S3 buckets.

> **[Amazon Simple Storage Service](https://docs.aws.amazon.com/AmazonS3/latest/userguide/)**

Also if you don’t want backup but just want to safeguard against delete of any object in S3, you can use MFA delete. This will ask for your MFA token on delete of object.

> **[Deleting an object from an MFA delete-enabled bucket - Amazon Simple Storage...](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingMFADelete.html)**
>
> Delete an object in a versioning-enabled bucket that is MFA delete–enabled by including the request header of the object version.

Also you can use versioning so that even on delete, the previous version is available.

> **[Retaining multiple versions of objects with S3 Versioning - Amazon Simple...](https://docs.aws.amazon.com/AmazonS3/latest/userguide/Versioning.html)**
>
> Use versioning in Amazon S3 to keep multiple variants of an object in the same bucket.

Also, keep in mind this all options will have some additional cost associated with it.

Let me know if you need more help.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2022年一月22日 18:29 UTC](https://meta.discourse.org/t/different-s3-region-for-backups-and-media/106348/7 "2022-01-22T18:29:34Z")

</div>


