Re: Set up a database without backup

Поиск
Список
Период
Сортировка
От Alejandro D. Burne
Тема Re: Set up a database without backup
Дата
Msg-id 8398dc6d0707241754p72959329k3e2f8ef7a86e5450@mail.gmail.com
обсуждение исходный текст
Ответ на Set up a database without backup  (tech@g-sistemas.com)
Список 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 по дате отправления:

Предыдущее
От: PostgreSQL Admin
Дата:
Сообщение: Re: deinstallation - reinstallation on Mac OS 10.4
Следующее
От: "Phillip Smith"
Дата:
Сообщение: Data directory was initialized by PostgreSQL version 8.3