Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDB sync #1

Open
oma opened this issue Oct 28, 2013 · 0 comments
Open

MongoDB sync #1

oma opened this issue Oct 28, 2013 · 0 comments

Comments

@oma
Copy link
Contributor

oma commented Oct 28, 2013

Somehow use the MONGO_URL ENV var (configurable var name?)

It should've been simple with mongoctl, but I can't get it to copy without indexes. Different MongoDB version and index copy is problematic, even from 2.4.6 to 2.4.1. Need to use mongorestore

  `mongoctl dump mongodb://USERNAME:[email protected]:15068/bentpixels`

#doesn't always work  `mongoctl restore staging_MONGO_URL dump/DUMPNAME --drop`

  `mongorestore --host HOST --port PORT --drop --noIndexRestore -d APPNAME dump/DUMPNAME`
  `heroku run rake db:mongoid:create_indexes --remote staging`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant