su - postgres

pg_dump db이름 > 폴더/백업파일명

백업파일 다운로드

dropdb -U postgres db이름

createdb -U postgres -E 인코딩 db이름

psql -U postgres db이름

\i 백업파일명