![](/img/trans.png)
[英]PostgreSQL pg_basebackup missing toc.dat header file
[英]pg_restore: [tar archiver] could not find header for file "toc.dat" in tar archive :- [PostgreSQL-11] pg admin 4
本地主機上的pg_restore版本必須與創建備份的機器上的pg_dump匹配,即backup-site
通過pg_dump備份 Postgres 數據庫並通過pg_restore ref恢復
pg_restore - 我們想要恢復backupfile ,即 .tar 文件或那個 .tar 文件的 untar 文件夾,到本地 postgres 數據庫 localdb
pg_dump - 使用此工具創建備份文件
我們本地機器上的 pg_restore 的版本可能與創建備份文件時使用的pg_dump版本不匹配
在本地機器和backup-site
上具有相同版本的機器上安裝pg_restore
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.