2016-07-05 70 views
0

我還沒有從舊數據目錄進行備份,但我仍然有目錄。在我目前的數據庫中,我有相同的模式,等...當我嘗試(使用pgAdmin的III)來恢復數據庫,我收到此錯誤:使用舊數據目錄還原新的Postgres數據庫

/Applications/pgAdmin3.app/Contents/SharedSupport/pg_restore --host localhost -- port 5432 -- username "postgres" --dbname "postgres" --role "postgres" --no-password --format directory --verbose "/Library/Postgres/9.5/data" 
pg_restore: [directory archiver] could not open input file "/Library/PostgreSQL/9.5/data/toc.dat": No such file or directory 

我不知道在哪裏的toc.dat應運而生玩,因爲我不熟悉它。這顯然會暫停恢復,但我不知道如何解決該問題。

回答

1

恢復時不要在參數中使用--format。