# Joining multiple standalone Pritunl's into a single MongoDB

**URL:** <https://forum.pritunl.com/t/joining-multiple-standalone-pritunls-into-a-single-mongodb/1404>\
**Category:** Pritunl\
**Created:** [September 26, 2023, 7:41pm UTC](https://forum.pritunl.com/t/joining-multiple-standalone-pritunls-into-a-single-mongodb/1404 "2023-09-26T19:41:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucascioffi](https://forum.pritunl.com/user_avatar/forum.pritunl.com/lucascioffi/32/513_2.png) [@lucascioffi](https://forum.pritunl.com/u/lucascioffi)\
**Post date:** [September 26, 2023, 7:41pm UTC](https://forum.pritunl.com/t/joining-multiple-standalone-pritunls-into-a-single-mongodb/1404/1 "2023-09-26T19:41:18Z")

</div>

Hello!

We have multiple Pritunl instances, each one running their own local MongoDB host.  
We would like to unify these instances into a single, external MongoDB to form a cluster.

What would be the best migration path to accomplish this? I know I could copy the contents from one of the MongoDB’s, but then I’m not sure how I would handle the other ones. I want to preserve existing user profiles as much as possible to avoid additional work. Are there any trouble related to standalone servers becoming nodes in a cluster?

I was thinking also of only exporting certain MongoDB collections and joining them, but I’m not sure if this would work.

Any help is greatly appreciated!

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [September 29, 2023, 2:53pm UTC](https://forum.pritunl.com/t/joining-multiple-standalone-pritunls-into-a-single-mongodb/1404/2 "2023-09-29T14:53:47Z")

</div>

There is no way to merge different Pritunl databases, it would cause significant issues. MongoDB has information on converting a single host into a replica sets but one existing database would need to be selected and the other databases would need to be deleted.

---

<div class="post-metadata">

**Author:** ![lucascioffi](https://forum.pritunl.com/user_avatar/forum.pritunl.com/lucascioffi/32/513_2.png) [@lucascioffi](https://forum.pritunl.com/u/lucascioffi)\
**Post date:** [September 29, 2023, 4:03pm UTC](https://forum.pritunl.com/t/joining-multiple-standalone-pritunls-into-a-single-mongodb/1404/3 "2023-09-29T16:03:05Z")

</div>

That’s fine, I imagined something like that…

Thanks zach! You’re great!
