Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a simple way to export the data from a meteor deployed app?

Tags:

mongodb

meteor

Is there a simple way to export the data from a meteor deployed app?

So, for example, if I had deployed an app named test.meteor.com...

How could I easily download the data that has been collected by that app - so that I could run it locally with data from the deployed app?

like image 594
Greg Mercer Avatar asked Jun 13 '12 23:06

Greg Mercer


People also ask

What is Meteor DataBase?

The Visual Meteor DataBase (VMDB) The VMDB contains about 3,000,000 meteors obtained by standardized observing methods which were collected during the last ~25 years.

What is Meteor MongoDB?

Meteor provides a complete open source platform for building web and mobile apps in pure JavaScript. The Meteor team chose MongoDB as its datastore for its performance, scalability, and rich features for JSON. Meteor apps run using JavaScript via Node. JS on the server and JavaScript in the phone's browser.


1 Answers

To get the URL for your deployed site at meteor.com use the command (you may need to provide your site password if you password protected it):

meteor mongo --url YOURSITE.meteor.com 

Which will return something like :

mongodb://client:[email protected]:27017/YOURSITE_meteor_com 

Which you can give to a program like mongodump

mongodump -u client -h sky.member1.mongolayer.com:27017 -d YOURSITE_meteor_com\           -p PASSWORD 

The password is only good for one minute. For usage:

$ meteor --help mongo 
like image 135
Scott Anderson Avatar answered Sep 21 '22 13:09

Scott Anderson