Created
May 23, 2020 13:46
-
-
Save Dremora/93e5c3449c930b25ffb4dcf28ccde382 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 --format=custom --no-acl --no-owner -U USER1 -h HOST1 DATABASE1 > database.dump | |
pg_restore --verbose --clean --no-acl --no-owner -U USER2 -h HOST2 -d DATABASE2 database.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment