I have a biggest MongoDB database in prod server. I want to setup replica set, So generally if we enabled replica set option on both server config file, it'll automatically start sync the data from the scratch.But I don't want to sync from the beginning. I need to configure it like MySQL replication.
The process should be,
Take dump from primary Restore it on secondary Enable replica set in config file(On both servers) Restart MongoDB.
Go to primary server and add the secondary node.
This is my requirement, Is possible or any other alternate solution for this?