pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Question about pg_wal.tar.gz generated by pg_basebackup
Date: Wed, 10 May 2023 08:38:22 -0500
Message-ID: <20d47b36-b16e-28a3-3a6b-ab13d4d5b8c2@gmail.com> (raw)
In-Reply-To: <CAEyh4sb3SnH6Mf88R98C3LBOdV_rW-sBu=1YoycVSqDYA+BA9A@mail.gmail.com>
References: <CAEyh4sb3SnH6Mf88R98C3LBOdV_rW-sBu=1YoycVSqDYA+BA9A@mail.gmail.com>

On 5/10/23 03:41, Dhirendra Singh wrote:
> Hi All,
> I am taking backup using pg_basebackup for the purpose of point in time 
> recovery in case something goes wrong with the data.
> The backup generates pg_wal.tar.gz which contains the wal file generated 
> during the backup.
> Is it of any use in the point in time recovery? do i have to archive it?
> According to the documentation, any wal files in pg_wal directory has to 
> be deleted after the base backup is restored and before the recovery starts.
> So if i understand it correctly, pg_wal.tar.gz is not required for point 
> in time recovery...but just want to confirm if my understanding is correct.
>
> My sole purpose of taking the backup is for point in time recovery. I am 
> not going to use it to create a standby server.

Use a dedicated tool instead of writing your own.  I like PgBackRest, but 
there are others.

-- 
Born in Arizona, moved to Babylonia.





view thread (4+ messages)  latest in thread

Message-ID: <20d47b36-b16e-28a3-3a6b-ab13d4d5b8c2@gmail.com>
Permalink:  ../20d47b36-b16e-28a3-3a6b-ab13d4d5b8c2@gmail.com/
Also on:    postgresql.org/message-id/20d47b36-b16e-28a3-3a6b-ab13d4d5b8c2@gmail.com

 · 

reply

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: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Question about pg_wal.tar.gz generated by pg_basebackup
  In-Reply-To: <20d47b36-b16e-28a3-3a6b-ab13d4d5b8c2@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