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

后端 未结 12 2135
轻奢々
轻奢々 2020-11-30 16:30

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 d

12条回答
  •  旧时难觅i
    2020-11-30 17:30

    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:PASSWORD@sky.member1.mongolayer.com: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
    

提交回复
热议问题