备份
mongodump -d dbname -o backup
例如
mongodump -d student -o backup
恢复
mongorestore -d dbname -o backup/dbname
例如
mongorestore -d student -o backup/student
mongodump -d dbname -o backup
例如
mongodump -d student -o backup
mongorestore -d dbname -o backup/dbname
例如
mongorestore -d student -o backup/student