Last active
March 9, 2017 09:35
-
-
Save ram4git/b039bab5dda6969ea21db13037955435 to your computer and use it in GitHub Desktop.
PSQL DUMP AND RESTORE
This file contains hidden or 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
#DUMP | |
pg_dump <DB_NAME> -U <USER_NAME> | gzip > <FILE_NAME>.gz | |
#RESTORE | |
gunzip -c <FILE_NAME>.gz | psql <DB_NAME> | |
#REFERENCES | |
# | |
#https://www.postgresql.org/docs/9.1/static/backup-dump.html | |
# | |
#postgres/cashcow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment