PostgreSQL 테이블 별 복구 방법

Karoid·2021년 5월 11일
0

만약 full dump 파일이 있다면

pg_restore --data-only --table=tablename fulldump.pg > onetable.pg

테이블 정보를 빼낼 DB가 살아있다면

pg_dump --data-only --table=tablename sourcedb > onetable.pg

테이블에 복구시

psql destdb < onetable.pg
profile
Backend. Rails, MongoDB 강좌를 운영하고 있습니다

0개의 댓글