From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Rohit Prakash Khare <rohitprakash123(at)indiatimes(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Recover lost database from DATA folder |
Date: | 2006-08-04 18:21:54 |
Message-ID: | 44D39042.8000906@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Rohit Prakash Khare wrote:
> I created few tables in one of my PostgreSQL database, but because of some connection
> problems I uninstalled it. have a DATA folder of my previous PostgreSQL installation. I want to use this directory on a new computer where I have presently installed PostgreSQL.
>
> I am using PostgreSQL 8.1 and pgAdminIII 1.4.3 on Windows XP. I want that the database in my previous DATA file should get attached to the new pg AdminIII. I have not got any backup of the database, but only the DATA folder is left.
>
> Is there any way?
If you have *all* the required files:
1. Stop PostgreSQL
2. Replace the existing data directory with your backup
3. Make sure the owner/permissions are correct.
4. Start PostgreSQL
5. Check the logs
This assumes your data directory was backed up while PostgreSQL was
stopped, otherwise there will probably be problems.
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-08-04 19:10:22 | Re: pg_xlog not cleaned up |
Previous Message | Richard Huxton | 2006-08-04 18:20:01 | Re: Scheduling Automatic Backups |