Created
August 9, 2017 16:06
-
-
Save attilagyorffy/34289b346c78ee5ddd20e066efcd6376 to your computer and use it in GitHub Desktop.
Import a PostgreSQL production database locally via a pipe
This file contains 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
ssh -C myproductionhost.com "sudo -u postgresuser PASSWORD="password" pg_dump production_database_name" | psql local_database_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment