Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 2FB2E9FB35A for ; Fri, 2 Mar 2007 07:55:14 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 50031-08 for ; Fri, 2 Mar 2007 07:55:05 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from bay0-omc1-s34.bay0.hotmail.com (bay0-omc1-s34.bay0.hotmail.com [65.54.246.106]) by postgresql.org (Postfix) with ESMTP id A29909FB34B for ; Fri, 2 Mar 2007 07:55:09 -0400 (AST) Received: from hotmail.com ([207.46.11.111]) by bay0-omc1-s34.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Fri, 2 Mar 2007 03:55:08 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 2 Mar 2007 03:55:07 -0800 Message-ID: Received: from 207.46.11.123 by by123fd.bay123.hotmail.msn.com with HTTP; Fri, 02 Mar 2007 11:55:02 GMT X-Originating-IP: [59.160.193.34] X-Originating-Email: [aroravishal22@hotmail.com] X-Sender: aroravishal22@hotmail.com In-Reply-To: <3610194854.20070302135236@rdw.ru> From: "Vishal Arora" To: isk@rdw.ru, pgsql-admin@postgresql.org Subject: Re: Problem with pg_restore Date: Fri, 02 Mar 2007 11:55:02 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 02 Mar 2007 11:55:07.0782 (UTC) FILETIME=[9F80F260:01C75CC1] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.074 tagged_above=0 required=5 tests=AWL, BAYES_50, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, MSGID_FROM_MTA_HEADER, SPF_PASS X-Spam-Level: * X-Archive-Number: 200703/10 X-Sequence-Number: 24834 pg_restore -U postgres -d template0 -v -C < file.tar try using this command pg_dump -U postgres -h /tmp -o -Ft -b -C mydb > file.tar >From: isk >Reply-To: isk >To: pgsql-admin@postgresql.org >Subject: [ADMIN] Problem with pg_restore >Date: Fri, 2 Mar 2007 13:52:36 +0300 > >PostgreSQL version 8.1.4 >Linux version 2.6.19-gentoo-r5 (gcc version 4.1.1 (Gentoo 4.1.1)) > >I make backup with commang: >pg_dump -U postgres -h /tmp -Ft -b -C mydb > file.tar > >When I want to restore from backup, i give error. > >pg_restore -U postgres -d template1 -v -C < file.tar > >error report: > Command was: COPY sl_log_2 (log_origin, log_xid, log_tableid, >log_actionseq, log_cmdtype, log_cmddata) FROM stdin; >pg_restore: [tar archiver] corrupt tar header found in 119 (expected 100, >computed 40443) file position 4296575488 >pg_restore: *** aborted because of error > > >---------------------------(end of broadcast)--------------------------- >TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly _________________________________________________________________ The average US Credit Score is 675. The cost to see yours: $0 by Experian. http://www.freecreditreport.com/pm/default.aspx?sc=660600&bcd=EMAILFOOTERAVERAGE