I have a huge data collection dump that I have to transfer to another machine every weekend. Therefore, I am planning an incremental backup and restore. As experimentally, mongorestore never combines data if _id already exists. Based on the above problem, I tried to use mongoimport and export, but the same problem exists since existing records are not merged. Any possible solution would be helpful.
an error in the mongoimport command caused by a duplicate key :: 11000 E11000 error index: news.news_data. $ id dup key: {: ObjectId ('5404410d9f5323ef734dac68')}
source
share