# Advantage of PBM over mongodump/restore for MongoDB CE migration?

**URL:** <https://forums.percona.com/t/advantage-of-pbm-over-mongodump-restore-for-mongodb-ce-migration/23074>\
**Category:** Percona Backup for MongoDB\
**Created:** [June 23, 2023, 1:12pm UTC](https://forums.percona.com/t/advantage-of-pbm-over-mongodump-restore-for-mongodb-ce-migration/23074 "2023-06-23T13:12:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://forums.percona.com/u/bluepuma77)\
**Post date:** [June 23, 2023, 1:12pm UTC](https://forums.percona.com/t/advantage-of-pbm-over-mongodump-restore-for-mongodb-ce-migration/23074/1 "2023-06-23T13:12:24Z")

</div>

We have 3 MongeDB CE clusters of which we would like to migrate all databases to a single new Percona MongoDB cluster with Encryption-at-rest. My understanding is we can only use “logical backups” with CE.

For data consistency, I would stop my application cluster, run the migration, then start the application cluster with the new database connection.

What is the advantage of PBM over mongodump/restore? Can I migrate all 100+ databases with 1 command per cluster?

---

<div class="post-metadata">

**Author:** ![Parag\_Bhayani](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/parag_bhayani/32/3710_2.png) [@Parag\_Bhayani](https://forums.percona.com/u/Parag_Bhayani)\
**Post date:** [June 26, 2023, 1:50pm UTC](https://forums.percona.com/t/advantage-of-pbm-over-mongodump-restore-for-mongodb-ce-migration/23074/2 "2023-06-26T13:50:00Z")

</div>

Hi @bluepuma77,

For migration, I would recommend to migrate your data using Initial sync process which is the easiest and safest way.

For PBM, there are many features that are advantageous. Some are -

- Provides Point In Time Recovery (PITR).
- Physical Backup and Restore capability.
- Incremental Physical Backups.
- Selectivity Backups.

Ref.: [Percona Backup for MongoDB](https://docs.percona.com/percona-backup-mongodb/index.html#what-you-can-do)

If you are looking for support related to Data Migration, you can reach out to Percona Team.  
For paid [support](https://www.percona.com/services/support)and [managed](https://www.percona.com/services/managed-services)or [consulting services](https://www.percona.com/services/consulting?_gl=1*gojhrf*_gcl_aw*R0NMLjE2ODYyNDgzNTguQ2p3S0NBanctSVdrQmhCVEVpd0EyZXh5Ty1IYXQxVzY4cFFzeEhMamMtUURrSzA0RnFYdVZza0JFazQ3ZVVONE1lZkgyc1FTZDk4TnNob0MySEFRQXZEX0J3RQ..*_gcl_au*MTMxODE2NTI0NS4xNjg3Nzg3MDc2), contact [Percona Sales](https://www.percona.com/about-percona/contact?_gl=1*gojhrf*_gcl_aw*R0NMLjE2ODYyNDgzNTguQ2p3S0NBanctSVdrQmhCVEVpd0EyZXh5Ty1IYXQxVzY4cFFzeEhMamMtUURrSzA0RnFYdVZza0JFazQ3ZVVONE1lZkgyc1FTZDk4TnNob0MySEFRQXZEX0J3RQ..*_gcl_au*MTMxODE2NTI0NS4xNjg3Nzg3MDc2).

Regards,  
Parag

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://forums.percona.com/u/bluepuma77)\
**Post date:** [June 28, 2023, 9:06am UTC](https://forums.percona.com/t/advantage-of-pbm-over-mongodump-restore-for-mongodb-ce-migration/23074/3 "2023-06-28T09:06:48Z")

</div>

@Parag_Bhayani Thanks for your response, what’s the “Initial sync process”? Do you mean to add a node to a replica set?

My challenge is that I have 3 clusters with 3 different replica sets (rs1, rs2, rs3), and I want to migrate all databases to a single new cluster with a new replica set name (rs).

---

<div class="post-metadata">

**Author:** ![Parag\_Bhayani](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/parag_bhayani/32/3710_2.png) [@Parag\_Bhayani](https://forums.percona.com/u/Parag_Bhayani)\
**Post date:** [June 28, 2023, 10:31am UTC](https://forums.percona.com/t/advantage-of-pbm-over-mongodump-restore-for-mongodb-ce-migration/23074/4 "2023-06-28T10:31:17Z")

</div>

Hi @bluepuma77 ,

> Thanks for your response, what’s the “Initial sync process”? Do you mean to add a node to a replica set?

Yes, I meant by adding the fresh node to a replicaSet.

> My challenge is that I have 3 clusters with 3 different replica sets (rs1, rs2, rs3), and I want to migrate all databases to a single new cluster with a new replica set name (rs).

In this case, you will need to take the dump from all three cluster and restore it one by one on the destination cluster.

I have already mentioned few features of PBM. Kindly refer to the reference link as well provided in earlier post.

Regards,  
Parag
