Created
March 24, 2021 12:09
-
-
Save maciejjankowski/c1ab718ec7bdf14090f340b519e3cbcd to your computer and use it in GitHub Desktop.
Restore pg_dump data
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
docker cp db_backup_file docker_hash:/tmp/db_backup_file | |
pg_restore --no-privileges \ | |
--no-owner \ | |
--superuser=postgres \ | |
--disable-triggers \ | |
--clean \ | |
-d db_name \ | |
/tmp/db_backup_file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment