Created
June 9, 2020 07:27
-
-
Save Ksisu/ee7b8464a9c22ca6af8fc835b1ed663f to your computer and use it in GitHub Desktop.
PSQL copy 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
# Copy remote database to local | |
pg_dump -C -h <<REMOTE_IP>> -U <<REMOTE_USER>> <<REMOTE_DB>> | psql -U <<LOCAL_USER>> <<LOCAL_DB>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment