ETC

[ PostgreSQL ] 데이터베이스 백업 및 복구

Pydole 2020. 1. 2. 19:58

 

postgres=# create database testdb;  

 

 

-bash-4.2$ pg_dumpall > all.sql            [ Lunux Shell - 백업 ]

 

 

 

postgres=# drop database testdb;

 

 

-bash-4.2$ pg_dump testdb > all.sql