Home  >  Article  >  Database  >  mongoDB之数据备份恢复工具

mongoDB之数据备份恢复工具

WBOY
WBOYOriginal
2016-06-07 17:54:461000browse

和数据库打交道难免会出现数据备份和恢复的时候,下面是用到的指令,暂时留在这里备注一下。 数据备份: E:\mongodb-win32-x86_64-2.2.1\bin mongodump.exe --db CpsCommodityInfo E:\Mongo20130329 数据恢复: E:\mongodb-win32-x86_64-2.2.1\binmongoresto

和数据库打交道难免会出现数据备份和恢复的时候,下面是用到的指令,暂时留在这里备注一下。

数据备份:

 E:\mongodb-win32-x86_64-2.2.1\bin>mongodump.exe --db CpsCommodityInfo E:\Mongo20130329


数据恢复: 

E:\mongodb-win32-x86_64-2.2.1\bin>mongorestore.exe  --db CpsCommodityInfo --directoryperdb F:\2013329\CpsCommodityInfo  --drop 

 

参考地址:

 

 

#binary-import-and-export-tools ,虚拟主机,美国空间,香港服务器租用
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn