Created
December 27, 2017 10:06
-
-
Save vigneshblue/b5f602f424933c73155d5fc812741409 to your computer and use it in GitHub Desktop.
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_dump -F c -h localhost -U pg_user -d db_name | gzip -c > sql_dump.gz | |
#-F format c -> custom | |
#Restore | |
pg_restore -U username -d db_name -v dumpfile_location -h localhost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment