Created
October 10, 2016 18:35
-
-
Save mlsmith/e1a4e70df69c04f12e72ab075c0a1deb to your computer and use it in GitHub Desktop.
Create a dump of a remote postgres database
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 -h remote_address -Fc -o -U db_username remote_db_name > file.dump | |
-h = host | |
-Fc = custom format archive | |
-U = DB username | |
-o = dump object identifiers (foreign keys) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment