슬기로운 연구생활

[ DB ] PostgreSQL 백업 복원 본문

카테고리 없음

[ DB ] PostgreSQL 백업 복원

vhrehfdl 2019. 9. 10. 14:31

PostgreSQL은 DB 특성상 console 작업이 너무 불편해 PgAdmin을 연동해야 한다.

* PgAdmin 연동

- PostgreSQL 외부접속을 허용한다.

 

1. listen_addresses 변경

/etc/postgrsql/9.5/main/postgresql.conf 에 들어간다. 저 부분을 변경해준다.

2. host 값 추가

/etc/postgresql/9.5/main/pg_hba.conf 에 들어가 가장 마지막 부분에 한 줄 입력해준다.

3. DB 재시작

* 백업

Backup을 눌러준다.

* 복구

Restore을 클릭해준다.

* 참고 URL

http://printhelloworld.tistory.com/143

 

Postgres 백업 및 복구 ( Backup & Restore with pgAdmin)

Postgres 백업 및 복구 ( Backup & Restore with pgAdmin) 옵션에 따라서 복구시에 에러가 발생하므로, 성공한 백업과 복구 옵션을 기록 1. 우측 메뉴 클릭, Backup ( 선택된 Schema 전체 ) 1) File Options (1)..

printhelloworld.tistory.com

 

Comments