From: Julien Rouhaud <rjuju123@gmail.com>
To: Yambu <hyambu@gmail.com>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Recovered data directory
Date: Sun, 18 Apr 2021 20:54:01 +0800
Message-ID: <20210418125401.licfzimvoor25gdn@nol> (raw)
In-Reply-To: <CALhHtcBwG3+Cz7-_RZgS-Gx6QigNymEiiygpkQUqVOYQ4tLDmQ@mail.gmail.com>
References: <CALhHtcBwG3+Cz7-_RZgS-Gx6QigNymEiiygpkQUqVOYQ4tLDmQ@mail.gmail.com>
On Sun, Apr 18, 2021 at 02:44:03PM +0200, Yambu wrote:
> Hello
>
> I lost data when my server crashed, so i have rebuilt a new server and have
> recovered the directory /var/lib/pgsql/10/data is there anything i need to
> do to start a new postgres instance after having copied the old recovered
> /var/lib/pgsql/10/data to new data directory with the same path
You also need all tablespaces directory if you had any, and possibly the pg_wal
directory if it was a symlink.
Note that if you get any error when trying to start the server it would
actually be useful to mention them.
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: rjuju123@gmail.com, hyambu@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Recovered data directory
In-Reply-To: <20210418125401.licfzimvoor25gdn@nol>
* 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