Skip to content

Instantly share code, notes, and snippets.

@thb
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save thb/99c8d98100caf6265579 to your computer and use it in GitHub Desktop.

Select an option

Save thb/99c8d98100caf6265579 to your computer and use it in GitHub Desktop.

Revisions

  1. Thomas Blumenfeld revised this gist Oct 18, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Dump and restore PostgreSQL database
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,4 @@
    pg_dump {database} > {dump_name}.sql -U {dbuser} -h {host}


    psql -p {port} -d {database} -U {dbuser} -W -f {dump_name}.sql
  2. Thomas Blumenfeld created this gist Oct 18, 2014.
    2 changes: 2 additions & 0 deletions Dump and restore PostgreSQL database
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    pg_dump {database} > {dump_name}.sql -U {dbuser} -h {host}