I ran mongobackup against my mongodb instance and it created three folders for my 3 collections in my db.
So backup looks like following:
--dbbackup/collection1/bson_files
--dbbackup/collection2/bson_files
--dbbackup/collection3/bson_files
Now I am trying to restore above backup with following command:
mongorestore --db dbrestore --collection collection1
--drop /dbbackup/collection1/
but it's failing with following error:
Failed: error scanning filesystem: file /dbbackup/collection1/ is a directory,
not a bson file
How do I successfully restore my backup?
via nitinsh99
No comments:
Post a Comment