heroku-mongo-pull
Heroku plugin to pull a MongoDB database used by your Heroku app to localhost using mongodump / mongorestore
Last updated 5 months ago by arvida .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install heroku-mongo-pull 
SYNC missed versions from official npm registry.

heroku-mongo-pull

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

Install

$ heroku plugins:install heroku-mongo-pull

Usage

$ 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:

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

Options

$ 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.

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |