Re: Set up a database without backup - Mailing list pgsql-admin

From Alejandro D. Burne
Subject Re: Set up a database without backup
Date
Msg-id 8398dc6d0707241754p72959329k3e2f8ef7a86e5450@mail.gmail.com
Whole thread Raw
In response to Set up a database without backup  (tech@g-sistemas.com)
List pgsql-admin
2007/7/24, tech@g-sistemas.com <tech@g-sistemas.com>:
> Hello everybody.
>
> I'm using PostgreSQL on Windows XP.
>
> I had to format de harddisc, and I'm lost databases and tablespaces
> configuration (1 database and 1 tablespace), I have a copy of directory
> where was the tablespaces ( but I haven't a backup made by pgAdmin ).
>
> What do I for set up my database and tablespace ?
>
> It could be: creating a new database and tablespace, and after copy files
> of older tablespace to newer tablespace?
>
> Thanks In Advance
>
> With Regards
>
> Juan.
>

If u have the dirs where the db where initialized you can reinstall
the "same" version of postgres on your windows machine and then
replace the data dir with your files backup.

Alejandro

pgsql-admin by date:

Previous
From: PostgreSQL Admin
Date:
Subject: Re: deinstallation - reinstallation on Mac OS 10.4
Next
From: "Phillip Smith"
Date:
Subject: Data directory was initialized by PostgreSQL version 8.3