pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Sushil Shirodkar <sushilps@hotmail.com>
To: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Re. Backup
Date: Thu, 03 Aug 2023 21:01:05 +0200
Message-ID: <dbb641c11b5fd71c9f24ee886853dcea556ea027.camel@cybertec.at> (raw)
In-Reply-To: <PH7PR10MB6225BB0156769A0E7B9C945AD408A@PH7PR10MB6225.namprd10.prod.outlook.com>
References: <PH7PR10MB6225BB0156769A0E7B9C945AD408A@PH7PR10MB6225.namprd10.prod.outlook.com>

On Thu, 2023-08-03 at 17:20 +0000, Sushil Shirodkar wrote:
> We take regular backup along with WALs everyday no issues, but one day of
> the week regularly backup fails with the following error.
> 
> ERROR:  requested WAL segment 0000000C000008A10000000B has already been removed
> 
> We know the reason there is heavy database activity going during this period. But
> trying to avoid addition of more WAL files, is there any way to modify our backup
> command below which will take just the snapshot and not worry about the WALs? 
> playing with diff. options but no luck.  
> 
> pg_basebackup -h ${MASTER_TCP_ADDRESS} -U ${REP_USER} -D ${BACKUP_DIR} -X fetch -Ft -zPw >>$LOG

You need the WAL, otherwise you cannot recover the backup.

Use "-X stream" instead of "-X fetch", and the problem will go away.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com





view thread (3+ messages)  latest in thread

Message-ID: <dbb641c11b5fd71c9f24ee886853dcea556ea027.camel@cybertec.at>
Permalink:  ../dbb641c11b5fd71c9f24ee886853dcea556ea027.camel@cybertec.at/
Also on:    postgresql.org/message-id/dbb641c11b5fd71c9f24ee886853dcea556ea027.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, sushilps@hotmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Re. Backup
  In-Reply-To: <dbb641c11b5fd71c9f24ee886853dcea556ea027.camel@cybertec.at>

* 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