Last active
November 17, 2020 14:23
-
-
Save savchukoleksii/0524e0d08598c85e85b178bdca5d63e6 to your computer and use it in GitHub Desktop.
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
DROP SCHEMA public CASCADE; | |
CREATE SCHEMA public; |
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
pg_dump -h {host} -p {port} -Fc -o -U {user} {database} > dump.sql.tar | |
pg_restore -d {database} {file} -Fc -U {user} -W |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment