Quote:
Originally Posted by RustyBrooks
Mongo comes with tools that can be used to dump and restore databases (mongoexport / mongoimport)
mongoimport does not like multiple line imports. I was trying to do something in a shell script with mongoimports... If i split up a multiple file import into separate files it worked fine but it ABSOLUTELY NOT WORK trying to import multiple json files in a single shell script. fwiw, this was in Windows. Maybe that issue is restricted to Windows only. I dunno since I never found a solution.