I have a biggest database in production server, I need to configure replication set for this, But I dont want to start it from initial sync. I need to configure it like Mysql replication.
The flow is,
Take dump from prod.
Restore it in Secondary.
Enable replication in config file.
Restart mongod services.rs.Initiate () from primaryrs.add("xxxxx")
But when I execute the rs.add command till start sync the database from the scratch. Is there any other possibilities to achieve this?