MongoDB Backup and Recovery
Enter the mongodb bin directory
export
./mongodump -d database
import
./mongorestore -d test -c user /tmp/testdb/
Related parameters
--host localhost --port 27017 --username quicktest --password quicktest --collection trans.sp --db quicktest
refer to:
http://blog.csdn.net/fdipzone/article/details/51549520