Created
January 3, 2022 08:52
-
-
Save IslamWahid/d5b58081c2fa7d7d1295bcd7b32d7404 to your computer and use it in GitHub Desktop.
Postgres Migration CheatSheet
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 -h {HOST} -U {USER} -W --verbose -Fc --no-acl {DB_NAME} > ./{FILE_NAME}.psql | |
pg_restore -h {HOST} -U {USER} -W --exit-on-error --verbose --no-acl --dbname={DB_NAME} < ./{FILE_NAME} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment