pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kumar <sgnerd@yahoo.com.sg>
To: psql <pgsql-sql@postgresql.org>
Subject: Unable to user pg_restore
Date: Mon, 20 Oct 2003 18:31:57 +0530
Message-ID: <00fb01c3970a$5f95b620$7502a8c0@hdsc.com> (raw)

Dear Friends,

I have created a compressed backup for the database - sampledb using the following 
$ pg_dump -h 192.128.2.51 -v -u -f /home/db_repository/sampledb20031020.sql.tar.gz wats -F c

while I try to restore this with the pg_restore function as follows
$ pg_restore -d sampledbtest -f /home/db_repositorysampledb.sql.tar.gz -F c -v -c -O -h 192.128.2.51 -p 5432 -u
User name: postgres

It never prompt for password, so I just typed the password , and get the error as follows, 
postgres
pg_restore: [archiver] did not find magic string in file header
$

Anyone could advise me on this pls.

Kumar

view thread (2+ messages)  latest in thread

Message-ID: <00fb01c3970a$5f95b620$7502a8c0@hdsc.com>
Permalink:  ../00fb01c3970a$5f95b620$7502a8c0@hdsc.com/
Also on:    postgresql.org/message-id/00fb01c3970a$5f95b620$7502a8c0@hdsc.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: sgnerd@yahoo.com.sg
  Subject: Re: Unable to user pg_restore
  In-Reply-To: <00fb01c3970a$5f95b620$7502a8c0@hdsc.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox