pg_restore: [custom archiver] could not read from input file: end of file

djeday84
Дата: 25.12.2014 22:54:33
Курс растет.. рубль падает :)) вобщем изучаем postgres
подскажите что я делаю не так :
a)host
psql (9.3.5)
pg_dump -h localhost -d Mydb -U postgres -b  -Fc -v -f /postgres/9.3/main/backup/dump/mydb_all_20141225.dm

 md5sum mydb_all_20141225.dmp
722477b3ee71748a3ddec5c935c5cc6d  mydb_all_20141225.dmp



б) target:
psql (9.3.4)
md5sum mydb_all_20141225.dmp
722477b3ee71748a3ddec5c935c5cc6d  mydb_all_20141225.dmp
pg_restore -h localhost -d rgu_all -U postgres -v /postgres/dumps/mydb_all_20141225.dmp 
.......

на выходе : pg_restore: [custom archiver] could not read from input file: end of file

pg_restore -l - отрабатывает без ошибок.
шо за ....
Maxim Boguk
Дата: 26.12.2014 01:54:29
djeday84,

надо смотреть не выдала ли самая первая команда ошибки (pg_dump) так как похоже на то у вас файл с самого начала поврежден.
djeday84
Дата: 29.12.2014 16:23:10
Maxim Boguk,

развернул дамп на домашнем компе, сделал его еще раз и он залился уже там где требовалось.