I am new to mongodb and want to know about importing a json file from one server to another. I tried the following command mongoimport -d tes
mongodb
json
mongoimport -d tes
You can always write some shell scripts.
colls=( mycoll1 mycoll2 mycoll5 ) for c in ${colls[@]} do mongoimport -d mydb -c $c.json done