pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: robert <robert@redcor.ch>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Restoring 9.1 db from crashed disk/VM
Date: Sat, 2 Jan 2021 12:49:53 +0100
Message-ID: <39f5516d-78eb-9fba-0aea-a8daa1d6b204@redcor.ch> (raw)

Friends

I hope you had a good start into 2021.


I would like to get some advice on how to restore a 9.1 DB, of which I have the

/var/lib/postgresql

with some 20GB salvaged.

Now I find now easily usable 9.1 PostgreSQL installer anymore.

How should I proceed to get that data in a newer PG loaded?

Could I just install a 9.5 and  copy the salvaged folder into

/var/lib/postgresql/9/main


Or could I add the folder to my PG 12 installation like:

/var/lib/postgresql/12/main
                             /9/main

and tell PG 12 somehow to read the data for the PG9 folder?

Thanks for your insights

Robert







view thread (2+ messages)  latest in thread

Message-ID: <39f5516d-78eb-9fba-0aea-a8daa1d6b204@redcor.ch>
Permalink:  ../39f5516d-78eb-9fba-0aea-a8daa1d6b204@redcor.ch/
Also on:    postgresql.org/message-id/39f5516d-78eb-9fba-0aea-a8daa1d6b204@redcor.ch

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: robert@redcor.ch
  Subject: Re: Restoring 9.1 db from crashed disk/VM
  In-Reply-To: <39f5516d-78eb-9fba-0aea-a8daa1d6b204@redcor.ch>
  References: <39f5516d-78eb-9fba-0aea-a8daa1d6b204@redcor.ch>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox