Last active
May 25, 2018 23:41
-
-
Save wykhuh/1c67ef576fee0c31fb748c94471c1dc4 to your computer and use it in GitHub Desktop.
import specific tables into heroku
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
// export tables from local database | |
pg_dump -Fc --no-acl --no-owner -t taxa -t taxa_names --data-only my_database > taxa.dump | |
// import tables into heroku | |
pg_restore --verbose --no-acl --no-owner -t taxa -t taxa_names -d postgres://user:password@host:port/database taxa.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment