Created
January 21, 2017 00:48
-
-
Save sicks/15ced9b3e44d8ee90b51c2a76b6e07d7 to your computer and use it in GitHub Desktop.
pg_restore in a docker container
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
| docker cp backup_file_name db_container_name:backup_file_name | |
| docker exec db_container_name sh -c "pg_restore -C -d target_database_name backup_file_name" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment