From: Stephen Frost <sfrost@snowman.net>
To: Gokan Atmaca <linux.gokan@gmail.com>
Cc: Victor Yegorov <vyegorov@gmail.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: PgBackRest PITR restore
Date: Mon, 13 Sep 2021 15:43:55 -0400
Message-ID: <20210913194355.GG17906@tamriel.snowman.net> (raw)
In-Reply-To: <CAHg8tEAQaE1d4bdifxemg53fARUXwsJNgFngRUe6g27cc+oyiw@mail.gmail.com>
References: <CAHg8tEB00Kk81SGHqDa8JvXW_6ZdH4qTmQkcAALchj=EtHswMA@mail.gmail.com>
<CAGnEboifMGBtH=_5MdkuZHzgo5z68V6O3e+g4rGHbzUb7TQkNA@mail.gmail.com>
<CAHg8tEAQaE1d4bdifxemg53fARUXwsJNgFngRUe6g27cc+oyiw@mail.gmail.com>
Greetings,
* Gokan Atmaca (linux.gokan@gmail.com) wrote:
> > Look for --db-include
>
> This option restores a single database but corrupts the others. Is it
> necessary to take a backup with "pg_dump" before doing this?
"Corrupts" is only kind of correct- it explicitly doesn't restore the
other databases (since you asked for just one to be restored) and makes
it such that you're not able to log into them.
Performing an export with pg_dump is one approach to getting a point in
time view of all of the data in a given database, but you won't be able
to perform PITR-style restore with pg_dump's.
Thanks,
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
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: sfrost@snowman.net, linux.gokan@gmail.com, vyegorov@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: PgBackRest PITR restore
In-Reply-To: <20210913194355.GG17906@tamriel.snowman.net>
* 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