• Backup
    • su - postgres
    • pg_dump db이름 > 폴더/백업파일
백업파일 다운로드
  • Restore
    • dropdb -U postgres db이름
    • createdb -U postgres -E 인코딩 db이름
    • psql -U postgres db이름
    • \i 백업파일명
728x90

+ Recent posts