Alex Dai Playground

[Mongodb] 資料備份 & 還原

| Comments

備份 sails-mongodb 到 backup 目錄下
mongodump --db sails-mongodb --out backup
只還原 sails-mongodb 中的 clients 資料
mongorestore --db sails-mongodb --collection clients backup/sails-mongodb/customers.bson

Comments

comments powered by Disqus