I wrote a quick BASH script to solve this problem. Since I only had the RethinkDB JavaScript driver, I had to install the python driver first so that I could use . rethinkdb import
mongo: users, pinboards analytics; BASH:
for collection in users pinboards analytics; \
do \
mongoexport \
--host my.mongo.server \
--db my_mongo_database \
--collection $collection \
> $collection.json; \
rethinkdb import \
--file $collection.json \
--table my_rethink_database.$collection; \
rm $collection.json; \
done
, . , mongoexport rethinkdb import.
, , - !