logo
  • 教程列表
  • SO官方文檔
  • 備份還原
    • 備份一個資料庫
    • 恢復備份
    • 備份整個群集
    • 使用 psql 匯出資料
    • 使用複製匯入
    • 使用複製匯出
  1. StackOverflow 文件
  2. postgresql 教程
  3. 備份還原
  4. 備份一個資料庫

備份一個資料庫

Created: November-22, 2018

pg_dump -Fc -f DATABASE.pgsql DATABASE

-Fc 選擇自定義備份格式,它比原始 SQL 提供更多功能; 有關詳細資訊,請參閱 pg_restore。如果你想要一個 vanilla SQL 檔案,你可以這樣做:

pg_dump -f DATABASE.sql DATABASE

甚至

pg_dump DATABASE > DATABASE.sql
  • 恢復備份
  • 備份還原

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明