简体   繁体   English

mongorestore恢复转储失败

[英]mongorestore to restore the dump is failing

When I run below command , I'm getting the output as shown, How to fix this? 当我在命令下运行时,我得到的输出如图所示,如何解决这个问题?

C:\\Users\\tadoori\\Downloads\\dump\\m101> mongorestore dump C:\\ Users \\ tadoori \\ Downloads \\ dump \\ m101 > mongorestore dump

2016-10-21T13:54:09.883-0600 Failed: mongorestore target 'dump' invalid: GetFileAttributesEx dump: The system cannot find the file specified. 2016-10-21T13:54:09.883-0600失败:mongorestore目标'dump'无效:GetFileAttributesEx dump:系统找不到指定的文件。

The argument you pass to mongodump is the dump path 传递给mongodump的参数是转储路径

As it seems you are already on the dump folder you can also specify the absolute path. 由于您似乎已经在转储文件夹中,您还可以指定绝对路径。

mongorestore C:\Users\tadoori\Downloads\dump

This will restore all dump folder contents (if the files are valid) 这将恢复所有转储文件夹内容(如果文件有效)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM