2016-07-05 73 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。