備份數據表:sql
pg_dump -U user_name db_name -t table_name -f /tmp/backup_file.suffix數據庫
恢復數據表:spa
方法1: 登陸數據庫:\i /tmp/backup_file.suffixtable
方法2: psql -U user_name db_name -f ./Documents/backup_test.sql class