Notes

A place to record somethings related to programming.


  • 首頁

  • 歸檔

  • 標籤

  • 檢索

Postgres backup by pg_dump and psql restore

發表於 2015-02-05 |

pg_dump –data-only -t “\”MixedCaseName\”” > xxx.txt
(add -o if you want to retain id)

Use psql to delete all data from the table.

sudo sudo -u username psql -U username -d dbname -f filename(xxx.txt)

# postgresql # sql
Running a Reverse Proxy in Apache
Imgae alignment
Jack Pan

Jack Pan

54 文章
24 標籤
© 2017 Jack Pan
由 Hexo 強力驅動
主題 - NexT.Mist