백업1 postgresql dump & restore - 자주 사용하는 postgresql dump 및 restore 명령어 -d DB명 -h : DB주소 -p : port번호 -U : 유저명 -F : 백업 포맷 지정 (p: plain-text, c: custom-format, d: directory, t: tar) -f : 백업 파일명 -t : 특정 테이블명 -j : Backup시 병렬처리 여부 및 그 정도 -v : 진행 과정 표시 - 이외의 다른 명령어들은 공식 홈페이지를 참조 https://www.postgresql.org/docs/current/app-pgdump.html pg_dump 예시 pg_dump -h localhost -p 5432 -d testdb -U postgres -v -F t > /backup/test_backup.tar 위의 명.. 2023. 2. 16. 이전 1 다음