备份
mongodump -h dbhost -d dbname -o dbdirectory
恢复
sudo mongorestore -h host --db database --dir mongodata/database
备份
mongodump -h dbhost -d dbname -o dbdirectory
恢复
sudo mongorestore -h host --db database --dir mongodata/database