Skip to content

Instantly share code, notes, and snippets.

@rm--
Last active May 17, 2016 15:02
Show Gist options
  • Select an option

  • Save rm--/f61ce9898f8081899f996f2f04c267bb to your computer and use it in GitHub Desktop.

Select an option

Save rm--/f61ce9898f8081899f996f2f04c267bb to your computer and use it in GitHub Desktop.
postgresql: dump and restore databases
pg_dump dbname > outfile
psql dbname < infile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment