Re: WAL files required to make base backup consistent

From: Jerry Sievers <gsievers19(at)comcast(dot)net>
To: Virupaksha Kanjilal <v(dot)kanjilal(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: WAL files required to make base backup consistent
Date: 2013-05-28 22:03:41
Message-ID: 87ppwa3goy.fsf@comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Virupaksha Kanjilal <v(dot)kanjilal(at)gmail(dot)com> writes:

> Hi
>
> I perform a pg_basebackup with tar option and do not bring in the WAL segments created during the backup. Now I want
> to make the backup a consistent copy and for that I need the WAL segments. How can I know which all WAL segments to
> apply to bring the backup to a consistent state?

Look in your WAL repository for files named *.backup.

The prefix part will match the name of a regular WALf file from when
the backup was started and the .backup file itself will contain some
human readable text indicating the last WAL segment that you'll need
for a consistent recovery.

HTH

> Thanks
> Viru
>

--
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres(dot)consulting(at)comcast(dot)net
p: 312.241.7800

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Sergey Konoplev 2013-05-28 22:39:38 Re: WAL files required to make base backup consistent
Previous Message Alvaro Herrera 2013-05-28 16:33:33 Re: exceeded MAX_ALLOCATED_DESCS while trying to open file