X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 8ABB9D1B496 for ; Fri, 5 Dec 2003 11:49:17 +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 38551-02 for ; Fri, 5 Dec 2003 07:48:49 -0400 (AST) Received: from ndl1mr1-a-fixed.sancharnet.in (ndl1mr1-a-fixed.sancharnet.in [61.0.0.45]) by svr1.postgresql.org (Postfix) with ESMTP id 4547ED1B482 for ; Fri, 5 Dec 2003 07:48:46 -0400 (AST) Received: from conversion-daemon.ndl1mr1-a-fixed.sancharnet.in by ndl1mr1-a-fixed.sancharnet.in (iPlanet Messaging Server 5.2 HotFix 1.17 (built Jun 23 2003)) id <0HPF0080172CK8@ndl1mr1-a-fixed.sancharnet.in> for pgsql-admin@postgresql.org; Fri, 05 Dec 2003 17:14:45 +0530 (IST) Received: from proxyplus.universe ([61.0.95.109]) by ndl1mr1-a-fixed.sancharnet.in (iPlanet Messaging Server 5.2 HotFix 1.17 (built Jun 23 2003)) with ESMTPA id <0HPF00FOD7A9S9@ndl1mr1-a-fixed.sancharnet.in>; Fri, 05 Dec 2003 17:14:45 +0530 (IST) Received: from sancharnet.in [192.50.200.20] by Proxy+; Fri, 05 Dec 2003 17:16:00 +0530 Date: Fri, 05 Dec 2003 17:16:00 +0530 From: Sai Hertz And Control Systems Subject: Re: Postrgres data restoration problem In-reply-to: <200312050714.hB57EXF29373@jupiter.milkyway.org> To: Jim Cochrane Cc: pgsql-admin@postgresql.org Message-id: <3FD06FF8.1010107@sancharnet.in> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 References: <200312050714.hB57EXF29373@jupiter.milkyway.org> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/51 X-Sequence-Number: 11559 Dear Jim Cochrane, >I'm looking for help restoring old postgres databases on a linux system >after a reinstall of Redhat (including posgresql). It's the same version >of redhat and of postgres I was using before the resinstall, but I've not >been able to get the database server to see the old databases. > > > Here we are trying to help >The old data is stored in the standard postgres format. (No, >unfortunately, I did not have a backup.) The postgres data is located >on my system under /var/lib/pgsql. So I tried both creating a >symbolic link - setting up /var/lib/pgsql/data as a symbolic link to >/oldpgsqlpath/data, and, when that didn't work, I just copied the old data >directory to /var/lib/pgsql (that is, it ended up residing in >/var/lib/pgsql/data), which didn't work either: > > I presume while you were doing the all above said 1. PostgreSQL was stoped while cp etc 2. The new cluster has been initialise initdb i..e the original database and not the copied direcrory namely /var/lib/pgsql If this help kindly shoot back for more For next time keep a backup Regards, V Kashyap