I am building a web application in Python for which I need MongoDB. I have MongoDB installed on a Mac OS X. And for my app I want to have a Linux VPS. I wanted to know whether I could migrate MongoDB collections from Mac to Linux. Does endianess of the system causes problems? What else might? I am no expert in databases or operating systems. And if we can migrate, can someone point me towards a guide or procedure? Thanks in advance.
Share
You can just run mongoexport, which will dump your database to a file in either JSON or CSV format.
Then, on your new machine, you can run mongoimport with the input file you got from mongoexport, and everything should be there.
mongoexport: http://www.mongodb.org/display/DOCS/mongoexport
mongoimport: http://www.mongodb.org/display/DOCS/Import+Export+Tools?focusedCommentId=4554852#ImportExportTools-mongoimport