mongoDB 3.0以上 备份数据库
#导出数据库
#导入数据库
/usr/local/mongodb/bin/mongorestore -d test ./test
mongoDB 3.0以下 备份数据库
/usr/local/mongodb/bin/mongodump -d test -o ./test
#导入数据库
/usr/local/mongodb/bin/mongorestore -h 127.0.0.1:27017 -d test --directoryperdb ./test