备份

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.log

SQL还原

psql.exe -h localhost -p 5432 -U postgres -f C:\All.sql

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2021-12-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-04
  • 2021-06-02
  • 2021-07-10
  • 2021-08-06
  • 2022-12-23
  • 2021-09-18
相关资源
相似解决方案