postgresql 데이터 백업/관리

  1. DB데이터 백업하기
    -bash-4.1$ pg_dump testdb >  test.sql
  2. DB 스키마만 덤프할때
    bash-4.1$ pg_dump -s testdb >  test.sql
  3. 데이터 복원
    bash-4.1$ psql  testdb < test.sql

Revision #2
Created 19 May 2023 12:56:11 by artop0420
Updated 19 May 2023 12:58:01 by artop0420