Hello,
I am trying to use the command line cmd mongorestore to restore a backup of a mongoDB database I have. Will this restore not work with the Atlas Cluster? The original DB was just a normal localized server database.
The error I am getting is:
don’t know what to do with file “/dev/channels.bson”, skipping…
don’t know what to do with file “/dev/channels.metadata.json”, skipping…
It would help us help you if you provide the following information:
Version of the Atlas cluster you are restoring to
Version of mongorestore you are using
Was mongodump the same version?
Exact command you are running when you get this error.
Usually this happens when you point mongodump at a subdirectory inside the full dump without specifying which namespace you want it to restore to, but I’m just guessing - if you provide full details, it may be more clear what the issue is.
If your are restoring one collection
nsInclude=dbname.collection_name
If it is full DB you have to use wildcard (*)
Please check this link having some examples