导出一个collection
mongodb-win32-i386-2.0.0in>mongoexport -h 192.168.1.2 -port 10001 -d mydb -c mytable -o out.txt
connected to: 192.168.1.2:10001
exported 10009 records
备份
E:mongodbmongodb-win32-i386-2.0.0in>mongodump -h 192.168.1.101 -port 20111 -d mydb -o mydb.bak
connected to: 192.168.1.101:20111
恢复
E:mongodbmongodb-win32-i386-2.0.0in>mongorestore -h 192.168.1.101 -port 20111 mydb.bak
connected to: 192.168.1.101:20111