Is there a way for mongorestore to replace the records existing in the database instead of skipping it which is the default behavior ?
I\'m currently using the lates
You could use the --drop parameter of mongorestore:
mongorestore
Before restoring the collections from the dumped backup, drops the collections from the target database. --drop does not drop collections that are not in the backup.