lihaibh / ditto

NPM library that helps managing MongoDB snapshots easily and efficiently
https://www.npmjs.com/package/mongodb-snapshot
MIT License
48 stars 6 forks source link

Database import does not work. #12

Closed TeacherSpaceSchool closed 3 years ago

TeacherSpaceSchool commented 3 years ago

I am trying to update a DB with a previously created backup. To do this, I use the remove_on_startup field, but I still receive a duplicate key error.

lihaibh commented 3 years ago

@TeacherSpaceSchool did you create the backup with this library? on which document you have the duplicate key error? are you transferring from file -> mongo? mongo -> mongo? mongo -> file?

if you import into a new database do you have the same error?

lihaibh commented 3 years ago

@TeacherSpaceSchool can you provide more information regarding the error or shall i close the issue?