Created
April 21, 2020 08:19
-
-
Save atlefren/a839c9c890737c12e7d92e5e5effec87 to your computer and use it in GitHub Desktop.
pg_dump__pg_restore.sh
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 schema, with no owner, custom format | |
pg_dump -d DATABASE -n SCHEMA -O -F c -f filename.dmp | |
#Restore | |
pg_restore -d DATABASE filename.dmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment