X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 62E1DD1B4FB for ; Mon, 20 Oct 2003 12:57:39 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 16683-04 for ; Mon, 20 Oct 2003 09:57:11 -0300 (ADT) Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by svr1.postgresql.org (Postfix) with SMTP id B4598D1B4E3 for ; Mon, 20 Oct 2003 09:57:03 -0300 (ADT) Received: from ptil-138-190-chn.primus-india.net (HELO IVESIA67) (sgnerd@203.196.190.138 with login) by smtp.mail.vip.sc5.yahoo.com with SMTP; 20 Oct 2003 12:57:04 -0000 Message-ID: <00fb01c3970a$5f95b620$7502a8c0@hdsc.com> Reply-To: "Kumar" From: "Kumar" To: "psql" Subject: Unable to user pg_restore Date: Mon, 20 Oct 2003 18:31:57 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00F3_01C39738.71C78610" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.6 tagged_above=0.0 required=5.0 tests=HTML_30_40 X-Spam-Level: X-Archive-Number: 200310/230 X-Sequence-Number: 15630 This is a multi-part message in MIME format. ------=_NextPart_000_00F3_01C39738.71C78610 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear Friends, I have created a compressed backup for the database - sampledb using the fo= llowing=20 $ 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 er= ror as follows,=20 postgres pg_restore: [archiver] did not find magic string in file header $ Anyone could advise me on this pls. Kumar ------=_NextPart_000_00F3_01C39738.71C78610 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Dear Friends,
 
I have created a compressed backup for the database - s= ampledb=20 using the following
$ pg_dump -h 192.128.2.51 -v -u -f=20 /home/db_repository/sampledb20031020.sql.tar.gz wats -F c
 
while I try to restore this with the pg_restore functio= n as=20 follows
$ pg_restore -d sampledbtest -f=20 /home/db_repositorysampledb.sql.tar.gz -F c -v -c -O -h 192.128.2.51 -p 543= 2=20 -u
User name: postgres
 
It never prompt for password, so I just typed the passw= ord ,=20 and get the error as follows,
postgres
pg_restore: [archiver] did not find magic s= tring=20 in file header
$
 
Anyone could advise me on this pls.
 
Kumar

------=_NextPart_000_00F3_01C39738.71C78610--