From: David Steele <david@pgmasters.net>
To: chiru r <chirupg@gmail.com>
To: Stephen Frost <sfrost@snowman.net>
Cc: Forums postgresql <pgsql-general@postgresql.org>
Subject: Re: PgBackRest question?
Date: Sat, 16 Dec 2017 07:19:59 -0500
Message-ID: <e252cb30-9707-3801-f688-75dd2cde4819@pgmasters.net> (raw)
In-Reply-To: <CA+RSxMgR-avEre8eCAkc795iNUiq_S3cmrvS1Lz_Lw6vZxdhPg@mail.gmail.com>
References: <CA+RSxMjBtqwCVWQm3dRzZkkWS8hFKPY2b82KXwbZDtPvGF1oQg@mail.gmail.com>
<20171213224505.GT4628@tamriel.snowman.net>
<CA+RSxMgR-avEre8eCAkc795iNUiq_S3cmrvS1Lz_Lw6vZxdhPg@mail.gmail.com>
On 12/15/17 4:36 PM, chiru r wrote:
>
> Thanks,I am thinking about a specific recovery case.
>
> Lets assume Heavy transactional system we configured.
> It is generating WAL 2000/hr and recycling automatically in pg_wal
> directory.
>
> QA :
>
> Sunday -- 11 PM -- Full backup done.
> Monday -- 11 PM -- Differential Backup done
> Tuesday-- 10 AM incremental backup is done
> Note : Every 2 hrs incremental backup scheduled on system.
>
> For example, if we want to restore to DEV server:
>
> We want to recover database as of 11:30 AM Tuesday on DEV server using
> QA backups.
>
> Is it possible to restore using pgbackrest tool for this scenario?.
Yes. See the documentation here on how to create a standby:
http://pgbackrest.org/user-guide.html#replication/hot-standby
And to recover to a specific point in time:
http://pgbackrest.org/user-guide.html#pitr
Then simply promote the standby and you have a dev server.
> How pgbackrest keeps track of transactions since the last backup? Where
> it stores transaction information for recovery ?.
The transactions since the last backup are tracked in the WAL. Here's
how to setup WAL archiving:
http://pgbackrest.org/user-guide.html#quickstart/configure-archiving
It looks like you have a lot of WAL volume so you'll want to use async
archiving:
http://pgbackrest.org/user-guide.html#backup-host/async-archiving
You mentioned in your original post:
> We are looking for an option, Can we store online backups and wal archive
> files separately in different directories?.
But it's not clear to me why you would need to do that based on your use
case.
Regards,
--
-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, chirupg@gmail.com, sfrost@snowman.net
Subject: Re: PgBackRest question?
In-Reply-To: <e252cb30-9707-3801-f688-75dd2cde4819@pgmasters.net>
References: <CA+RSxMjBtqwCVWQm3dRzZkkWS8hFKPY2b82KXwbZDtPvGF1oQg@mail.gmail.com> <20171213224505.GT4628@tamriel.snowman.net> <CA+RSxMgR-avEre8eCAkc795iNUiq_S3cmrvS1Lz_Lw6vZxdhPg@mail.gmail.com> <e252cb30-9707-3801-f688-75dd2cde4819@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