# Trouble with multisite backups on S3--backups stored in root

**URL:** <https://meta.discourse.org/t/trouble-with-multisite-backups-on-s3-backups-stored-in-root/229945>\
**Category:** Self-hosting\
**Tags:** s3\
**Created:** [June 14, 2022, 4:34pm UTC](https://meta.discourse.org/t/trouble-with-multisite-backups-on-s3-backups-stored-in-root/229945 "2022-06-14T16:34:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [June 17, 2022, 8:57pm UTC](https://meta.discourse.org/t/trouble-with-multisite-backups-on-s3-backups-stored-in-root/229945/5 "2022-06-17T20:57:03Z")

</div>

> [@pfaffman](#):
>
> Backups for the multisite instances are being stored in the bucket root

Hmm, that’s a weird behavior. Do you mean backups which are uploaded from within the browser or backups created by the system?

I don’t see a reason why backups created by the system would end up at the wrong place. The code looks quite straightforward.

> <https://github.com/discourse/discourse/blob/641c4e0b7a82f5c4ca5bac9b983c306ec75d7c0a/lib/backup_restore/s3_backup_store.rb#L41-L47>

`s3_helper` gets configured with the correct bucket and multisite name.

> <https://github.com/discourse/discourse/blob/641c4e0b7a82f5c4ca5bac9b983c306ec75d7c0a/lib/backup_restore/s3_backup_store.rb#L15-L17>

> <https://github.com/discourse/discourse/blob/641c4e0b7a82f5c4ca5bac9b983c306ec75d7c0a/lib/backup_restore/s3_backup_store.rb#L152-L154>

---

_[View the full topic](https://meta.discourse.org/t/trouble-with-multisite-backups-on-s3-backups-stored-in-root/229945)._
