README.md in mongoid-shell-0.4.1 vs README.md in mongoid-shell-0.4.2
- old
+ new
@@ -34,10 +34,18 @@
out = File.join(Dir.tmpdir, 'db_backup')
mongodump = Mongoid::Shell::Commands::Mongodump.new(db: 'another_database', out: out)
system mongodump.to_s # mongodump --db another_database --out /tmp/db_backup
```
+To specify parameters multiple times, set them to arrays.
+
+``` ruby
+mongodump = Mongoid::Shell::Commands::Mongodump.new(collection: %w(users products))
+system mongodump.to_s # mongodump --collection users --collection products
+```
+
+
Compatibility
-------------
This gem supports Mongoid 3, 4 and 5.
@@ -61,10 +69,10 @@
``` 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`.
+The `Mongoid::Shell::Commands::Mongodump` class supports `--db`, `--host`, `--username`, `--password`, `--query`, `--out`, `--collection`, `--excludeCollection`, `--excludeCollectionsWithPrefix`, `--directoryperdb`, `--journal`, `--oplog`, `--repair`, `--forceTableScan`, `--dbpath` and `--ipv6`.
### Mongorestore
The mongorestore tool imports content from binary database dump, created by mongodump into a specific database.