Parallel World

Postgresql ROLE 백업 및 복구 본문

프로그래밍/Linux

Postgresql ROLE 백업 및 복구

EL_aya 2019. 10. 1. 19:23

ROLE 백업

pg_dumpall -h localhost -p 5432 -U postgres -v --roles-only -f "/path/to/useraccts.sql"

테이블 스페이스가 포함된 모든 글로벌 백업

pg_dumpall -h localhost -p 5432 -U postgres -v --globals-only -f "/path/to/globals.sql"

ROLE 복원

psql -h localhost -d postgres -U postgres -f "/path/to/useraccts.sql"

 

Comments