# Do we need to stop the balancer before doing pitr restore just like we do pbm restore?

**URL:** <https://forums.percona.com/t/do-we-need-to-stop-the-balancer-before-doing-pitr-restore-just-like-we-do-pbm-restore/10548>\
**Category:** Percona Backup for MongoDB\
**Created:** [May 21, 2021, 10:27am UTC](https://forums.percona.com/t/do-we-need-to-stop-the-balancer-before-doing-pitr-restore-just-like-we-do-pbm-restore/10548 "2021-05-21T10:27:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siva\_Sukumar\_Reddy](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/siva_sukumar_reddy/32/3255_2.png) [@Siva\_Sukumar\_Reddy](https://forums.percona.com/u/Siva_Sukumar_Reddy)\
**Post date:** [May 21, 2021, 10:27am UTC](https://forums.percona.com/t/do-we-need-to-stop-the-balancer-before-doing-pitr-restore-just-like-we-do-pbm-restore/10548/1 "2021-05-21T10:27:46Z")

</div>

I see that we need to stop the balancer before performing the `pbm restore`. But, do we need to stop the balancer when we do the pitr restore as well?

---

<div class="post-metadata">

**Author:** ![Vinodh\_Krishnaswamy](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vinodh_krishnaswamy/32/46_2.png) [@Vinodh\_Krishnaswamy](https://forums.percona.com/u/Vinodh_Krishnaswamy)\
**Post date:** [May 29, 2021, 6:05pm UTC](https://forums.percona.com/t/do-we-need-to-stop-the-balancer-before-doing-pitr-restore-just-like-we-do-pbm-restore/10548/2 "2021-05-29T18:05:39Z")

</div>

Siva,  
Yes, you will need to do the below things before restore:

1. Stop the Balancer
2. Make sure no writes to the DB while restore operation. Else the data consistency might be compromised. You can stop all mongos to make sure that no writes to the DB
3. If PITR is enabled, disable it before restore. After the restore, the oplog slices backed up with PITR after the restored time and before the last full backup will become invalid.

Hope this helps you!
