1. mongoexport
2. mongoimport
/opt/mongodb/node1/mongodb-linux-x86_64-1.8.4/bin/mongoexport -h ${host}:${port} -d ${database} -c ${collection} -o ~/xxxx.json
2. mongoimport
/opt/mongodb/node1/mongodb-linux-i686-1.8.4/bin/mongoimport --host ${host}:${port} -d ${database} -c ${collection} --file ~/xxxx.json