Postgres数据库备份与还原命令
生活随笔
收集整理的這篇文章主要介紹了
Postgres数据库备份与还原命令
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
備份
pg_dump.exe -c -b -E UTF8 -U postgres -h 127.0.0.1 -p 5432 -f "f:\testdb001.bak" testdb001還原
psql.exe -h 127.0.0.1 -U postgres -d testdb001 -E -f "f:\testdb001.bak"?
--Linux pg_dump -U postgres -c -C --if-exists -d cmsss -f F:/cmsss.sql?
SQL備份
pg_dumpall.exe -h localhost -p 5432 -U postgres -v -f C:\All.sql 2> C:\All.logSQL還原
psql.exe -h localhost -p 5432 -U postgres -f C:\All.sql轉(zhuǎn)載于:https://www.cnblogs.com/winkey4986/p/5368173.html
總結(jié)
以上是生活随笔為你收集整理的Postgres数据库备份与还原命令的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 《Algorithm算法》笔记:元素排序
- 下一篇: hdu 2074