Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

local pg_sql to heroku pg_sql

# set the password in an environment variable
export PGPASSWORD=mypassword # linux/mac
set PGPASSWORD=mypassword # windows
# create the database dump
$ pg_dump -Fc --no-acl --no-owner -h localhost -U myuser mydb > mydb.dump
Source by devcenter.heroku.com #
 
PREVIOUS NEXT
Tagged: #local #heroku
ADD COMMENT
Topic
Name
3+5 =