數據庫postgresql的單表備份與恢復


數據庫用戶名: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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM