-f
er output filnavn, ikke inputfilen.
Inputfilen har ikke nogen parameterswitch.
c:\>pg_restore --help
pg_restore restores a PostgreSQL database from an archive created by pg_dump.
Usage:
pg_restore [OPTION]... [FILE]
General options:
-d, --dbname=NAME connect to database name
-f, --file=FILENAME output file name
-F, --format=c|d|t backup file format (should be automatic)
-l, --list print summarized TOC of the archive
-v, --verbose verbose mode
-V, --version output version information, then exit
-?, --help show this help, then exit
Så du skal bruge:
pg_restore.exe -h localhost -U postgres -d Mydata "Mydata.backup"
Flere detaljer i manualen:http://www.postgresql.org /docs/current/static/app-pgrestore.html