Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arvida/heroku-mongo-pull
✨ Pull a MongoDB database from your Heroku app to localhost using mongodump / mongorestore ✨
https://github.com/arvida/heroku-mongo-pull
heroku heroku-cli-plugin heroku-mongo mongodb
Last synced: 29 days ago
JSON representation
✨ Pull a MongoDB database from your Heroku app to localhost using mongodump / mongorestore ✨
- Host: GitHub
- URL: https://github.com/arvida/heroku-mongo-pull
- Owner: arvida
- License: mit
- Created: 2014-02-06T21:37:41.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-06-11T07:27:32.000Z (over 6 years ago)
- Last Synced: 2024-10-04T00:25:09.509Z (about 1 month ago)
- Topics: heroku, heroku-cli-plugin, heroku-mongo, mongodb
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/heroku-mongo-pull
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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.