项目作者: arvida

项目描述 :
✨ Pull a MongoDB database from your Heroku app to localhost using mongodump / mongorestore ✨
高级语言: JavaScript
项目地址: git://github.com/arvida/heroku-mongo-pull.git
创建时间: 2014-02-06T21:37:41Z
项目社区:https://github.com/arvida/heroku-mongo-pull

开源协议:MIT License

下载


heroku-mongo-pull

Pull a Mongodb database used by your Heroku app to localhost using mongodump / mongorestore commands.

Install

  1. $ heroku plugins:install heroku-mongo-pull

Usage

  1. $ heroku mongo:pull

This will replace the database with the same name as your app on localhost with the database specified by your apps Heroku config.

The databased replaced can be specified by setting the MONGO_URL env variables:

  1. $ MONGO_URL=mongodb://username:password@localhost:9999/my-database heroku mongo:pull

Options

  1. $ heroku mongo:pull --noIndexRestore

This will skip index restoration when importing the data. This can be usefull if you are using different versions of MongoDB and just want to import the data.