Mongo 2.7.x 还不是稳定版本,在这个版本中,tools 工具采用 Go 重写了。
主要工具有:
- **bsondump** display BSON files in a human-readable format
- **mongoimport** Convert data from JSON or CSV and insert them into a collection
- **mongoexport** Write an existing collection to CSV or JSON format
- **mongodump/mongorestore** Dump MongoDB backups to disk in .BSON format, or restore them to a live database
- **mongostat** Monitor live MongoDB servers, replica sets, or sharded clusters
- **mongofiles** Read, write, delete, or update files in GridFS
- **mongooplog** Replay oplog entries between MongoDB servers
- **mongotop** Monitor read/write activity on a mongo server
看来使用 Go 的团队真是越来越多啊……
源代码在 Github 上:[https://github.com/mongodb/mongo-tools](https://github.com/mongodb/mongo-tools)
![屏幕快照 2017-11-24 下午10.56.27.png](https://static.studygolang.com/171124/d2cfbe9d6ba1ac089fea3f629d8ab241.png)
现在官方还是没有驱动……
#1