Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

heroku download database

heroku pg:backups:capture # Save current remote database
heroku pg:backups:download # Download from remote
# load remote on local machine
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U {user} -d {db name} latest.dump
Source by devcenter.heroku.com #
 
PREVIOUS NEXT
Tagged: #heroku #download #database
ADD COMMENT
Topic
Name
6+5 =