mongo 3.0 備份和還原數據庫

主要記錄下在mongo 3.0的操做

錯誤方式:spa

mongorestore -h localhost -d production --directoryperdb ./keystone_production/
  • 使用mongorestore –help,正確還原方式爲(去掉–directoryperdb):
mongorestore -h localhost -d keystone_dev ./keystone_production/
相關文章
相關標籤/搜索