Skip to content

Instantly share code, notes, and snippets.

@courtsimas
Created May 8, 2012 22:12
Show Gist options
  • Save courtsimas/2639836 to your computer and use it in GitHub Desktop.
Save courtsimas/2639836 to your computer and use it in GitHub Desktop.
transferring database from one heroku app to another

First, capture (backup) the database from the primary app

$ heroku pgbackups:capture --app appname_im_transferring_from

Then, import it into the second app

$ heroku pgbackups:restore DATABASE `heroku pgbackups:url --app appname_im_transferring_from` --app appname_im_transferring_to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment