Docker postgresql db 백업, 복원 방법.
구글엔 없는게 없다.. https://stackoverflow.com/questions/24718706/backup-restore-a-dockerized-postgresql-database dump_$(date +%Y-%m-%d_%H_%M_%S).sql #복원 cat your_dump.sql | docker exec -iT your-db-container psql -U your-db-user -d your-db-name 내 경우 복원 과정에서 아래와 같은 tty 오류가 나서 the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty' -T 옵션을 붙여주니 정상적으로 작동했다. 여기서 -T옵션은 ..