- Reference >
- Database Commands >
- Replication Commands >
- replSetSyncFrom
replSetSyncFrom¶
On this page
Description¶
-
replSetSyncFrom¶ Explicitly configures which host the current
mongodpulls oplog entries from. This operation is useful for testing different patterns and in situations where a set member is not replicating from the desired host.The
replSetSyncFromcommand has the following form:The
replSetSyncFromcommand has the following field:Field Type Description replSetSyncFromstring The name and port number of the replica set member that this member should replicate from. Use the [hostname]:[port]form.For more information the use of
replSetSyncFrom, see Configure a Secondary’s Sync Target.