mogodb备份与还原

发表:2015-02-06 00:27:59

备份:

mongodump -h 127.0.0.1 -d test -o c:backupmongoDbdata%date:~0,4%-%date:~5,2%-%date:~8,2%%time:~0,2%-%time:~3,2%


还原:

mongorestore -h 127.0.0.1 -d test c:backupmongoDbdata2012-04-0319-48test


相关文章