Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 115E52E0038 for ; Mon, 5 May 2008 19:40:24 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 60231-09 for ; Mon, 5 May 2008 19:40:14 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from smtp162.iad.emailsrvr.com (smtp162.iad.emailsrvr.com [207.97.245.162]) by developer.postgresql.org (Postfix) with ESMTP id 050472E0032 for ; Mon, 5 May 2008 19:40:19 -0300 (ADT) Received: from relay6.relay.iad.emailsrvr.com (localhost [127.0.0.1]) by relay6.relay.iad.emailsrvr.com (SMTP Server) with ESMTP id AE53A72D59B; Mon, 5 May 2008 18:40:18 -0400 (EDT) Received: by relay6.relay.iad.emailsrvr.com (Authenticated sender: chander-AT-otg-nc.com) with ESMTP id 8B468738688; Mon, 5 May 2008 18:40:18 -0400 (EDT) Message-ID: <481F8C6C.8040406@otg-nc.com> Date: Mon, 05 May 2008 18:38:36 -0400 From: Chander Ganesan User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: yogesh@banasdairy.coop CC: pgsql-admin@postgresql.org Subject: Re: Restore Database From data folder References: <46633.10.1.1.53.1208236287.squirrel@10.1.1.31> In-Reply-To: <46633.10.1.1.53.1208236287.squirrel@10.1.1.31> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/33 X-Sequence-Number: 29117 yogesh@banasdairy.coop wrote: > i have a backup of data folder of my old postgresql database on 7.54 > > now i want to restore my complete database from data folder in ver 8.1 > I assume you mean you wish to upgrade your 7.4 installation of PostgreSQL to PostgreSQL 8.1 ? The short answer: You'll need to start the 7.4 version of the server, with your old data directory and run the version of 'pg_dumpall' that comes with PostgreSQL 8.1 . Once you've generated a dump and saved it, you can install 8.1 and then use the 'psql' utility to re-load the dump on 8.1 . The 7.4 data directory isn't compatible with 8.1, so you'll need to perform the dump and subsequent restore. You'll probably also want to go through the 7.4 pg_hba.conf and postgresql.conf files and port over any changes you need that are 8.1 compatible. -- Chander Ganesan Open Technology Group, Inc. One Copley Parkway, Suite 210 Morrisville, NC 27560 919-463-0999/877-258-8987 http://www.otg-nc.com Expert PostgreSQL & PostGIS training - delivered worldwide.