# Can we combine 2 separate discourse sites?

**URL:** https://meta.discourse.org/t/can-we-combine-2-separate-discourse-sites/251236
**Category:** Support
**Created:** [January 10, 2023, 1:58am UTC](https://meta.discourse.org/t/can-we-combine-2-separate-discourse-sites/251236 "2023-01-10T01:58:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kuaza](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kuaza/32/264151_2.png) [@kuaza](https://meta.discourse.org/u/kuaza)
#### Post date: [January 10, 2023, 1:58am UTC](https://meta.discourse.org/t/can-we-combine-2-separate-discourse-sites/251236/1 "2023-01-10T01:58:29Z")

</div>

Can we combine 2 separate discourse sites? I have 2 discourse sites. And I want to close someone. Can I move the contents of the discourse site that I closed to the main site? 2. site is connected to main site with [discourse connect](https://meta.discourse.org/t/13045?silent=true). So the memberships are shared. Thanks

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [January 10, 2023, 3:13am UTC](https://meta.discourse.org/t/can-we-combine-2-separate-discourse-sites/251236/2 "2023-01-10T03:13:52Z")

</div>

Hey Kuaza, yes this is possible. See:

> [@Merge two Discourse sites into one](https://meta.discourse.org/t/merge-two-discourse-sites-into-one/95435):
>
> If you have two Discourse sites that you wish were one, this guide is for you. There’s a tool called [discourse\_merger](https://github.com/discourse/discourse/blob/main/script/bulk_import/discourse_merger.rb) that can take one Discourse site and merge it into another. Prereqs This is not an easy task, and should be treated like any other migration to Discourse. You will not be running discourse\_merger on a live production site. You will perform the merge in another environment where you can review the output before moving the result to production. Copy vs Merge Almost everythin…

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [January 10, 2023, 10:49am UTC](https://meta.discourse.org/t/can-we-combine-2-separate-discourse-sites/251236/3 "2023-01-10T10:49:25Z")

</div>

I tried it a year and a half ago and found it was not that easy.

After several false starts, I gave up and enlisted the services of @pfaffman - you won’t find a better discourse migration expert outside of the Discourse team!! And he struggled with it too.

The main issues were:

1. The script had a lot of awkward gem dependencies and other fiddly bits that needed to be sorted
2. My ‘from’ database had lots of issues that needed to be sorted before it would run. _Lots_ of problems!!
3. The fidelity was disappointing, with no catering for UCFs, likes, or other richer content.

In the end I abandoned that path and did a simple category import of my lesser forum and lived with the low fidelity for that content.

I’m not sure (unless things have changed) that the merger script is used often enough for it to be polished. But I can attest that this is:

> [@Move topics from one Discourse instance to another](https://meta.discourse.org/t/move-topics-from-one-discourse-instance-to-another/38930):
>
> Need to move some stuff from one instance of Discourse to another? There is a command line tool to export a topic, a set of topics, or an entire category, and another to import them in at the other end. Topic Export/Import one or more topics and their replies the users who posted in the topic Category Export/Import the category and all its subcategories its security settings custom groups mentioned in the security settingswarning if any of the groups have ‘membership requests’ enable…

---

<div class="post-metadata">

### Author: ![kuaza](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kuaza/32/264151_2.png) [@kuaza](https://meta.discourse.org/u/kuaza)
#### Post date: [January 20, 2023, 2:52pm UTC](https://meta.discourse.org/t/can-we-combine-2-separate-discourse-sites/251236/4 "2023-01-20T14:52:56Z")

</div>

Thanks but I got errors in some parts and unfortunately the explanation is insufficient. env settings section, for example, where do we do this? how are we going to do? there is no information. It is necessary to update the subject in detail for people who do not know much.
