Last active
August 29, 2015 14:26
-
-
Save enriquez/bd61d9e51d6083d3989b to your computer and use it in GitHub Desktop.
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
# Database dump from remote Postgres database | |
pg_dump postgres://username:password@example.com:5432/databasename > ~/Desktop/database.sql | |
# Restore dump to remote Postgres database | |
psql postgres://username:password@example.com:5432/databasename < ~/Desktop/database.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment