Created
August 25, 2017 12:30
-
-
Save leesmith/f378d3593c97d1f236ca685a19d81e35 to your computer and use it in GitHub Desktop.
Postgres dump cluster and restore
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
$ pg_dumpall > pg_all.sql | |
$ psql -U lsmith -f pg_all.sql postgres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment