发布于 2015-09-14 15:07:49 | 159 次阅读 | 评论: 0 | 来源: 网络整理
The clone command clone a database from a remote MongoDB instance to the current host. clone copies the database on the remote instance with the same name as the current database. The command takes the following form:
{ clone: "db1.example.net:27017" }
Replace db1.example.net:27017 above with the resolvable hostname for the MongoDB instance you wish to copy from. Note the following behaviors:
See copydb for similar functionality.
警告
This command obtains an intermittent write-lock on the destination server, that can block other operations until it completes.