Skip to content

Instantly share code, notes, and snippets.

@Uysim
Created December 23, 2016 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Uysim/6fdfe93220ea82a7ffee2f360e8c2553 to your computer and use it in GitHub Desktop.
Save Uysim/6fdfe93220ea82a7ffee2f360e8c2553 to your computer and use it in GitHub Desktop.
This script use to clone postgres Schema
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