Search code examples
mongodbmeteordata-synchronization

How can I synchronize a production meteor js database with development?


I'm just getting into Meteor, and am similarly new to MongoDB. I am accustomed to syncing MySQL dbs (production vs dev) for running tests of new features with near-live data. At present, I don't know how to do this with meteor.

From this (http://docs.meteor.com/#meteormongo) I gather that I can use a mongoDB shell to work with my local db, but from looking at http://docs.mongodb.org/manual/mongo/, I haven't yet figured out if this is the path I should be following to sync things up for Meteor.

Has anyone set up a relatively straightforward procedure for syncing Meteor JS db's, or can you point me to resources that might help me get up to speed?


Solution

  • Not sure I understood the question, but:

    1. You can choose the db you are working with by setting the MONGO_URL environment variable
    2. You can dump the data from one db and load it to another (if this is what you want to do)