# 如果上传和备份均设置为 S3，备份到 DigitalOcean Spaces 会失败

**URL:** <https://meta.discourse.org/t/backup-to-digitalocean-spaces-fails-if-uploads-and-backup-are-both-set-to-s3/106916>\
**Category:** Support\
**Created:** [2019年一月18日 15:21 UTC](https://meta.discourse.org/t/backup-to-digitalocean-spaces-fails-if-uploads-and-backup-are-both-set-to-s3/106916 "2019-01-18T15:21:11Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2019年一月26日 00:23 UTC](https://meta.discourse.org/t/backup-to-digitalocean-spaces-fails-if-uploads-and-backup-are-both-set-to-s3/106916/6 "2019-01-26T00:23:30Z")

</div>

Hey, @gerhard, I have

```
DISCOURSE_S3_BACKUP_BUCKET: 'lc-backups'

```

Those backups are being stored in `backups/multisitename`, (so it would seem like the stuff I’ve seen lately about not being able to share buckets might not need to be true anymore, but that’s for another topic).

I thought that I’d set the upload bucket in one of the sites on this multisite install to `lc-backups/uploads` or maybe `lc-backups/uploads/sitename`, but it fails with: ` You cannot use the same bucket for 's3_upload_bucket' and 's3_backup_bucket'. Choose a different bucket or use a different path for each bucket.`

But I am using a different path. I thought it might be related to [FIX: Do not show backups stored in subfolder of bucket · discourse/discourse@45b056b · GitHub](https://github.com/discourse/discourse/commit/45b056b6151e3479b893cd6c01256c1248ded3f1) (even though it didn’t look like it), but I just upgraded and still no joy.

Is this a bug or am I wrong?

(And I’d just create another bucket and move on with life, but Digital Ocean isn’t allowing any more buckets to be created on NYC3 😠)

Thanks.

---

_[View the full topic](https://meta.discourse.org/t/backup-to-digitalocean-spaces-fails-if-uploads-and-backup-are-both-set-to-s3/106916)._
