# גיבוי מולטי-סייט באמצעות משתמש discourse במקום DB\_USER או הערך מ-multisite.yml

**URL:** <https://meta.discourse.org/t/multisite-backup-using-user-discourse-rather-than-db-user-or-value-from-multisite-yml/320218>\
**Category:** Bug\
**Tags:** unsupported-install\
**Created:** [5 באוגוסט,‏ 2024,‏ 5:01pm UTC](https://meta.discourse.org/t/multisite-backup-using-user-discourse-rather-than-db-user-or-value-from-multisite-yml/320218 "2024-08-05T17:01:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [6 באוגוסט,‏ 2024,‏ 2:08pm UTC](https://meta.discourse.org/t/multisite-backup-using-user-discourse-rather-than-db-user-or-value-from-multisite-yml/320218/2 "2024-08-06T14:08:08Z")

</div>

@pfaffman I’m afraid we had to [revert this](https://github.com/discourse/discourse/commit/6f80ebfc414f15dda1700a82b1c9970362ec51d1), because it broke restoration of backups in our production environments.

> [@pfaffman](#):
>
> Tl;dr: `ActiveRecord::Base.connection_pool.db_config.configuration_hash` has the username in `user`, not `username`

Our sample multisite config (and indeed, the production config) has it under ‘username’:

> <https://github.com/discourse/discourse/blob/5e73b06ab22805c05a47f6d4a7a770e1ea7e4fa6/config/multisite.yml.production-sample#L16C4-L19C9>

---

_[View the full topic](https://meta.discourse.org/t/multisite-backup-using-user-discourse-rather-than-db-user-or-value-from-multisite-yml/320218)._
