postgre 数据库备份恢复命令

备份:pg_dump -U postgres -v -F c -Z 4 -f ***.backup dbname  9压缩率最狠
恢复:pg_restore -U postgres -v -j 8 -d dbname ***.backup   8是采用8个线程

备份表:pg_dump -U postgres -t tablename dbname > 33.sql
恢复表:psql -U postgres -d dbname < 33.sql

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-11-29
  • 2021-11-20
  • 2021-09-20
  • 2021-06-10
  • 2021-09-02
猜你喜欢
  • 2022-12-23
  • 2021-12-01
  • 2022-03-01
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
相关资源
相似解决方案