From: David Steele <david@pgmasters.net>
To: Luca Ferrari <fluca1978@gmail.com>
To: Andreas Joseph Krogh <andreas@visena.com>
Cc: Daulat Ram <Daulat.Ram@exponential.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Postgres Point in time Recovery (PITR),
Date: Fri, 18 Oct 2019 13:47:05 +0200
Message-ID: <3ff2963f-daab-81d4-ab1a-569fe1c8857b@pgmasters.net> (raw)
In-Reply-To: <CAKoxK+7PpV6G16nuXhuUjUN_SNVjUsVM2s5ns_AMUvksgys52A@mail.gmail.com>
References: <MN2PR01MB5854BEF9884EA942657A18799B6C0@MN2PR01MB5854.prod.exchangelabs.com>
<VisenaEmail.8c.74d96bc312aea0bc.16dddf72933@tc7-visena>
<CAKoxK+7PpV6G16nuXhuUjUN_SNVjUsVM2s5ns_AMUvksgys52A@mail.gmail.com>
On 10/18/19 11:29 AM, Luca Ferrari wrote:
> On Fri, Oct 18, 2019 at 10:30 AM Andreas Joseph Krogh
> <andreas@visena.com> wrote:
>> We use barman (https://www.pgbarman.org/) for continuous streaming backup and I had to restore from it once, and it went like this:
>
> Just for the records, here's an example of restore with pgbackrest:
>
> % sudo -u postgres pgbackrest --stanza=miguel \
> --log-level-console=info --delta restore
> ...
> INFO: restore backup set 20190916-125652F
> INFO: remove invalid files/paths/links from /postgres/pgdata/11
> INFO: cleanup removed 148 files, 3 paths
> ...
> INFO: write /postgres/pgdata/11/recovery.conf
> INFO: restore global/pg_control (performed last
> to ensure aborted restores cannot be started)
> INFO: restore command end: completed successfully (5113ms)
pgBackRest also has a tutorial on PITR:
https://pgbackrest.org/user-guide.html#pitr
--
-David
david@pgmasters.net
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: david@pgmasters.net, fluca1978@gmail.com, andreas@visena.com, Daulat.Ram@exponential.com
Subject: Re: Postgres Point in time Recovery (PITR),
In-Reply-To: <3ff2963f-daab-81d4-ab1a-569fe1c8857b@pgmasters.net>
References: <MN2PR01MB5854BEF9884EA942657A18799B6C0@MN2PR01MB5854.prod.exchangelabs.com> <VisenaEmail.8c.74d96bc312aea0bc.16dddf72933@tc7-visena> <CAKoxK+7PpV6G16nuXhuUjUN_SNVjUsVM2s5ns_AMUvksgys52A@mail.gmail.com> <3ff2963f-daab-81d4-ab1a-569fe1c8857b@pgmasters.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