Skip to content

Instantly share code, notes, and snippets.

@wykhuh
Last active May 25, 2018 23:41
Show Gist options
  • Save wykhuh/1c67ef576fee0c31fb748c94471c1dc4 to your computer and use it in GitHub Desktop.
Save wykhuh/1c67ef576fee0c31fb748c94471c1dc4 to your computer and use it in GitHub Desktop.
import specific tables into heroku
// 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