数据更新和备份

/usr/local/mongodb/mongodb3.2.4/bin
export PATH=$PATH:/usr/local/mongodb/mongodb3.2.4/bin
db.dropDatabase()

整库备份:
mongodump -d dbname -o c:\data
mongodump -d haduo -o F:\yzc\haduo\blog-master--\data

mongorestore -d dbname --dir dbdirectoryadd
mongorestore -d haduo --dir /home/haduo/blog-master--/data/haduo

推荐阅读更多精彩内容