1) mongodump (export)
all database
$ mongodump
single database
$ mongodump -d databaseName
single collection
$ mongodump -d databasename -c collectionName
2) mongorestore (import)
mongorestore -d databaseName /path/
mongorestore -d databaseName -c collectionName