Hello, I'm having trouble with pg_dump and pg_restore (PG 7.3.4). This is how I'm dumping my DB: # pg_dump -d mydb --clean --inserts --column-inserts --format=P -v -h localhost -p 5432 -U otis > dbdump # gzip -9 dbdump + scp it to a remote machine where I want to restore this dump in a different DB (same DB user, also on localhost, also PG 7.3.4, but different DB name) # gunzip dbdump.gz # pg_restore -a -d myOtherDbName dbdump But restore fails with this error: pg_restore: [archiver] input file does not appear to be a valid archive I checked the man pages for both commands, but didn't see anything that would make me think that I'm doing something wrong, but I must be.... Thanks, Otis
<ogjunk-pgjedan@yahoo.com> writes:
> This is how I'm dumping my DB:
> # pg_dump -d mydb --clean --inserts --column-inserts --format=P -v -h
> localhost -p 5432 -U otis > dbdump
> # pg_restore -a -d myOtherDbName dbdump
> pg_restore: [archiver] input file does not appear to be a valid archive
Plain dump format is a script to feed to psql. pg_restore is only for
the other two formats.
regards, tom lane
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера