數據庫用戶名:postgres
數據庫:poidata
表明:poi
表備份輸出的文件:/home/share/wg/poi.sql
//------------------------------------------------------------------
備份:
pg_dump -U postgres poidata -t poi -f /home/share/wg/poi.sql
恢復:
psql -U postgres -d poidata < /home/share/wg/poi.sql
