From: Scott Marlowe <scott.marlowe@gmail.com>
To: PJ <af.gourmet@videotron.ca>
Cc: pgsql-admin@postgresql.org
Subject: Re: recover or move databases
Date: Mon, 8 Dec 2008 16:36:31 -0700
Message-ID: <dcc563d10812081536l3274927aia1a3a52904453c07@mail.gmail.com> (raw)
In-Reply-To: <493DAD4B.50005@videotron.ca>
References: <493DAD4B.50005@videotron.ca>
On Mon, Dec 8, 2008 at 4:27 PM, PJ <af.gourmet@videotron.ca> wrote:
> I am trying to recover postgres databases from a crashed disk.
> I have set up a new installation of FreeBSD 7.0 with postgresql8.3.
> The old databases are accessible when the repaired disk is mounted :
> /oldfsb/local/pgsql/data/base/.
> How can I move these databases to the new /usr/local/pgsql/data/base/ ?
> Old and new are both v. 8.3
> Copying does not do it.
> This seems to be one way, but it seems rather long... and complicated..
> Any help would be appreciated,
Not copy, you need to start the postmaster on the old directory, use
pg_dump or pg_dumpall to get the data out, the stop the db and start
it back up on the new directory and use psql or pg_restore.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: scott.marlowe@gmail.com, af.gourmet@videotron.ca
Subject: Re: recover or move databases
In-Reply-To: <dcc563d10812081536l3274927aia1a3a52904453c07@mail.gmail.com>
* 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