还原mongodb备份不起作用

时间:2018-06-23 16:40:01

标签: mongodb backup restore mongorestore

我正在尝试运行mongorestore backup-2018-06-23,当我运行它时,我得到了一些输出,但是当我执行show dbs时,什么也没有返回。

以下是输出:

admin@JK-SRV-NODE:~$ mongorestore asset-management/
2018-06-23T12:36:53.923-0400    building a list of dbs and collections to restore from asset-management dir
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/assets.bson", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/assets.metadata.json", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/manufacturers.bson", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/manufacturers.metadata.json", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/mobilephones.bson", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/mobilephones.metadata.json", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/servers.bson", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/servers.metadata.json", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/sessions.bson", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/sessions.metadata.json", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/subusers.bson", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/subusers.metadata.json", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/switches.bson", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/switches.metadata.json", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/tablets.bson", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/tablets.metadata.json", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/tokens.bson", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/tokens.metadata.json", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/users.bson", skipping...
2018-06-23T12:36:53.923-0400    don't know what to do with file "asset-management/users.metadata.json", skipping...
2018-06-23T12:36:53.923-0400    done

0 个答案:

没有答案