Created
February 25, 2019 15:12
-
-
Save jkeam/f9719aec8e2c39e46ea8f03070519a20 to your computer and use it in GitHub Desktop.
Heroku Table Dump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get database info | |
heroku config:get DATABASE_URL -a app_name | |
# dump command | |
pg_dump --column-inserts --no-acl --no-owner -h host_name -U postgres_user -t table_name --data-only db_name > output_filename.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment