Created
December 23, 2016 03:09
-
-
Save Uysim/6fdfe93220ea82a7ffee2f360e8c2553 to your computer and use it in GitHub Desktop.
This script use to clone postgres Schema
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 --schema='source_schema' database_name | sed 's/source_schema/destination_schema/g' | psql -d database_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment