README.md in mongoid-shell-0.2.0 vs README.md in mongoid-shell-0.3.0

- old
+ new

@@ -30,44 +30,44 @@ mongodump = Mongoid::Shell::Commands::Mongodump.new(db: 'another_database', out: out) system mongodump.to_s # mongodump --db another_database --out /tmp/db_backup ``` Supported Commands -================== +------------------ -## Mongo +### Mongo The mongo shell is an interactive JavaScript shell for MongoDB. The `Mongoid::Shell::Commands::Mongo` class generates a command line to connect to MongoDB. A particularly useful feature is that it will always yield the address of the master node of a MongoDB replica set. ``` ruby Mongoid::Shell::Commands::Mongo.new.to_s ``` Supports `--username`, `--password`, `--eval`, `--nodb`, `--norc`, `--quiet` and `--ipv6`. -## Mongodump +### Mongodump Mongodump is a utility for creating a binary export of the contents of a database. ``` ruby mongodump = Mongoid::Shell::Commands::Mongodump.new({ collection: 'test' }) mongodump.to_s # mongodump --db test --collection test ``` The `Mongoid::Shell::Commands::Mongodump` class supports `--db`, `--host`, `--username`, `--password`, `--query`, `--out`, `--collection`, `--directoryperdb`, `--journal`, `--oplog`, `--repair`, `--forceTableScan`, `--dbpath` and `--ipv6`. -## Mongorestore +### Mongorestore The mongorestore tool imports content from binary database dump, created by mongodump into a specific database. ``` ruby mongorestore = Mongoid::Shell::Commands::Mongorestore.new({ collection: 'test', restore: '/tmp/db_backup' }) mongorestore.to_s # mongorestore --db test --collection test /tmp/db_backup ``` -The `Mongoid::Shell::Commands::Mongorestore` class supports `--db`, `--host`, `--username`, `--password`, `--collection`, `--ipv6, `--dbpath`, `--directoryperdb`, `--journal`, `--objcheck`, `--filter`, `--drop`, `--oplogReplay` and `--keepIndexVersion`. +The `Mongoid::Shell::Commands::Mongorestore` class supports `--db`, `--host`, `--username`, `--password`, `--collection`, `--ipv6`, `--dbpath`, `--directoryperdb`, `--journal`, `--objcheck`, `--filter`, `--drop`, `--oplogReplay`, `--keepIndexVersion` and `--noIndexRestore`. -## Mongostat +### Mongostat The mongostat utility provides a quick overview of the status of a currently running mongod or mongos instance. The `Mongoid::Shell::Commands::Mongostat` class supports `--host`, `--username`, `--password`, `--rowcount`, `--discover`, `--noheaders`, `--http` and `--all`.