Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. IMPORTING DATA FROM HEROKU TO LOCAL MACHINE
  2.  
  3. Install the Heroku Backup tool
  4.  
  5. $ heroku addons:add pgbackups
  6. Start using it
  7.  
  8. $ heroku pgbackups:capture
  9. Download the remote db on Heroku (to your local machine) using curl
  10.  
  11. $ curl -o latest.dump `heroku pgbackups:url`
  12. Load it*
  13.  
  14. $ pg_restore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement