Why mongorestore always returning the error that directory not found even with correct file path?

54 Views Asked by At

I want to import some data in mongoDb database's collection. That collection already have some data and i want to import some more data into it. So for that i am using this command

mongorestore --drop -d local-db -c users /Documents/cwc/mongo-backups/Users.bson

but this command is always returning this error

Failed: mongorestore target '/Documents/cwc/mongo-backups/Users.bson' invalid: stat /Documents/cwc/mongo-backups/Users.bson: no such file or directory

How can i fix this?

0

There are 0 best solutions below