Re: recovering database from a linux file system

From: Pierre Chevalier Géologue <pierrechevaliergeol(at)free(dot)fr>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: recovering database from a linux file system
Date: 2016-03-11 10:29:24
Message-ID: 56E29E04.1040405@free.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

Le 10/03/2016 21:10, John R Pierce a écrit :
> On 3/10/2016 12:05 PM, Alka Gupta wrote:
>> The vendor won't give us any way to access the machine and retrieve
>> the DB, so I removed the HDD and connected it to my Linux laptop. I
>> was able to grab all the DB files and copy them to my Windows desktop,
>> where I then installed PostgreSQL 9.0 (to match the version that was
>> on the server) with pgAdmin III. I changed the default directory to
>> the folder containing the DB files using this tutorial:
>> https://wiki.postgresql.org/wiki/Change_the_default_PGDATA_directory_on_Windows
>
>
> I would try installing postgres on linux, and try running it with a copy
> of this data directory. skip the pgadmin thing entirely as its just
> another layer of obfuscation, stick with CLI tools.

Yes. Also, make sure that you have the _same architecture_ than your
dusty server, i.e. 32 bit vs. 64 bits, and maybe other "details". Since
postgresql data files are *very* close to what happens in the server's
RAM, a $PGDATA contents will not be readable on a different architecture.

Which OS was your old dusty server running on?

Regards (and courage!)
Pierre
--
____________________________________________________________________________
Pierre Chevalier
PChGEI: Pierre Chevalier Géologue Et Informaticien
Partenaire DALIBO
Mesté Duran
32100 Condom
Tél+fax : 09 75 27 45 62
06 37 80 33 64
Émail : pierrechevaliergeolCHEZfree.fr
icq# : 10432285
jabber: pierre(dot)chevalier1967(at)jabber(dot)fr
http://pierremariechevalier.free.fr/pierre_chevalier_geologue
____________________________________________________________________________

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Harish Kumar Gudur (DATA GLOVE INCORPORATED DBA TR) 2016-03-11 12:27:56 "PostgreSQL" Version 9.3 Supportability
Previous Message Durgamahesh Manne 2016-03-11 10:22:51 Re: Regarding connection drops for every few minutes