PG dump and restore

Поиск
Список
Период
Сортировка
От Dennis C
Тема PG dump and restore
Дата
Msg-id AANLkTin3viErR9PLqTk0gIueJ7D0CXcfAhJ13mfkabc9@mail.gmail.com
обсуждение исходный текст
Ответы Re: PG dump and restore  (Thom Brown <thombrown@gmail.com>)
Re: PG dump and restore  ("Joshua D. Drake" <jd@commandprompt.com>)
Список 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,

В списке pgsql-general по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Waarschuwing na pg_dumpall en restore
Следующее
От: Thom Brown
Дата:
Сообщение: Re: PG dump and restore