# Migrating from Community Mongodb to percona MongoDB - No downtime

**URL:** https://forums.percona.com/t/migrating-from-community-mongodb-to-percona-mongodb-no-downtime/15014
**Category:** MongoDB
**Created:** [March 31, 2022, 1:30pm UTC](https://forums.percona.com/t/migrating-from-community-mongodb-to-percona-mongodb-no-downtime/15014 "2022-03-31T13:30:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![reab](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@reab](https://forums.percona.com/u/reab)
#### Post date: [March 31, 2022, 1:30pm UTC](https://forums.percona.com/t/migrating-from-community-mongodb-to-percona-mongodb-no-downtime/15014/1 "2022-03-31T13:30:38Z")

</div>

Hi,

We are testing Pecona Mongodb and would like to Migrate some mongodb instance “running in k8s” to Percona cluster which already runs in k8s as well.

we need zero downtime so what is the best approach to migrate?  
Also can we backup a mongodb instance and restore to percona mogodb cluster?

Thanks

---

<div class="post-metadata">

### Author: ![Ege\_Gunes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ege_gunes/32/4595_2.png) [@Ege\_Gunes](https://forums.percona.com/u/Ege_Gunes)
#### Post date: [March 31, 2022, 1:52pm UTC](https://forums.percona.com/t/migrating-from-community-mongodb-to-percona-mongodb-no-downtime/15014/2 "2022-03-31T13:52:58Z")

</div>

Hi @reab,

You can leverage the cross site replication feature in PSMDB operator. [This blog post](https://www.percona.com/blog/migrating-mongodb-to-kubernetes) may give some insight. Let me know if you have further questions.

---

<div class="post-metadata">

### Author: ![reab](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@reab](https://forums.percona.com/u/reab)
#### Post date: [April 12, 2022, 9:10am UTC](https://forums.percona.com/t/migrating-from-community-mongodb-to-percona-mongodb-no-downtime/15014/3 "2022-04-12T09:10:43Z")

</div>

Thanks @Ege_Gunes

Is there a way other than cross site replication feature in PRMDB to migrate without downtime?

---

<div class="post-metadata">

### Author: ![Ege\_Gunes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ege_gunes/32/4595_2.png) [@Ege\_Gunes](https://forums.percona.com/u/Ege_Gunes)
#### Post date: [April 15, 2022, 10:03am UTC](https://forums.percona.com/t/migrating-from-community-mongodb-to-percona-mongodb-no-downtime/15014/4 "2022-04-15T10:03:27Z")

</div>

Hi @reab,

The main problem is moving the data from source to target, cross site replication minimizes the downtime since you can wait for two sites to sync while your cluster is online. Did you have any problems in cross site replication?

---

<div class="post-metadata">

### Author: ![reab](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@reab](https://forums.percona.com/u/reab)
#### Post date: [April 17, 2022, 12:41pm UTC](https://forums.percona.com/t/migrating-from-community-mongodb-to-percona-mongodb-no-downtime/15014/5 "2022-04-17T12:41:39Z")

</div>

The issue is the source is running as a standalone not replica set. so we need to convert it to a replica set which we had issues with. the source is running in k8s as well. @Ege_Gunes

Not sure how to convert to a replica set when mongodb deployment is running on k8s
