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

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

Asked on November 16, 2018 in Meteor.
Add Comment


  • 2 Answer(s)

    Here is the solution is:

        To bring the URL for the 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 returns the code  :

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

    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
    

     

    Answered on November 19, 2018.
    Add Comment

    Here is the Example code:

    Try this,

    # How to upload local db to meteor:
     
    # -h = host, -d = database name, -o = dump folder name
    mongodump -h 127.0.0.1:3002 -d meteor -o meteor
     
    # get meteor db url, username, and password
    meteor mongo --url myapp.meteor.com
     
    # -h = host, -d = database name (app domain), -p = password, folder = the path to the dumped db
    mongorestore -u client -h c0.meteor.m0.mongolayer.com:27017 -d myapp_meteor_com -p 'password' folder/
    
    Answered on November 19, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.