Created
July 5, 2017 21:55
-
-
Save jjb/e908e7938050f1b598aad6ca30bee29a 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
pg_dump --schema-only --no-privileges --no-owner DBNAME | awk 'RS="";/CREATE TABLE[^;]*;/' > DBNAME.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
source: https://serverfault.com/a/695085/19317