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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-general by date

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