0.0
No commit activity in last 3 years
No release in over 3 years
adds rake task to perform backup and restore between heroku remotes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
 Project Readme

HerokuDbSync

Adds rake tasks to perform backup and restore between heroku remotes

Recommended git remotes setup pattern:

$ git remote -v
origin	git@github.com:rubynor/somecoolproject.git (fetch)
origin	git@github.com:rubynor/somecoolproject.git (push)
production	git@heroku.com:somecoolproject.git (fetch)
production	git@heroku.com:somecoolproject.git (push)
staging	git@heroku.com:somecoolproject-stage.git (fetch)
staging	git@heroku.com:somecoolproject-stage.git (push)

Usage

gem 'heroku-db-sync'

#backup production and overwrite local development (postgresql) db
rake db:sync:heroku:local

#backup production and overwrite staging db
rake db:sync:heroku:staging

#NOTE: heroku will prompt you to confirm the name of the before overwriting it! Remember to type it

you may also specify remotes

rake db:sync:heroku:remote[staging,production]
#where to_remote=staging and from_remote=production
rake db:sync:heroku:local[staging]
#where from_remote=staging

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

This project rocks and uses MIT-LICENSE.