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

PG dump and restore

From: Dennis C <dcswest(at)gmail(dot)com>
To: questions(at)postgresql(dot)org
Subject: PG dump and restore
Date: 2010-06-25 15:28:24
Message-ID: AANLkTin3viErR9PLqTk0gIueJ7D0CXcfAhJ13mfkabc9@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-general
Greetings;

As I've been doing for quite some time, backed up my database as
such: /opt/local/lib/postgresql84/bin/pg_dump -c -f ./Trading-Access -Z 5
Trading-Access

But then when I tried restoring it my usual way as
such: /opt/local/lib/postgresql84/bin/pg_restore -d Trading-Access
./Trading-Access
it causes the error: pg_restore: [archiver] input file does not appear to be
a valid archive

So in trying: /opt/local/lib/postgresql84/bin/psql Trading-Access <
./Trading-Access
it causes the error: invalid byte sequence for encoding "UTF8": 0x8b

Thanks,

Responses

pgsql-general by date

Next:From: Thom BrownDate: 2010-06-25 15:37:29
Subject: Re: PG dump and restore
Previous:From: Alvaro HerreraDate: 2010-06-25 15:20:29
Subject: Re: Waarschuwing na pg_dumpall en restore

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