PostgreSQL 备份及恢复


备份

pg_dump ran_dev > /root/backup/pg.dmp

恢复

psql ran_dev < /root/backup/pg.dmp