Skip site navigation (1) Skip section navigation (2)

pg_restore: [archiver] input file does not appear to be a valid archive

From: <ogjunk-pgjedan(at)yahoo(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: pg_restore: [archiver] input file does not appear to be a valid archive
Date: 2004-09-15 13:04:03
Message-ID: 20040915130403.52264.qmail@web12702.mail.yahoo.com (view raw or flat)
Thread:
Lists: pgsql-admin
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


Responses

pgsql-admin by date

Next:From: Gaetano MendolaDate: 2004-09-15 14:16:05
Subject: Re: VACUUM FULL achieves nothing / Postgres 7.3.2 + RedHat 7.3
Previous:From: Ian FREISLICHDate: 2004-09-15 09:25:04
Subject: Re: unsubscribe

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group