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

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?

1 Like

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!

1 Like