pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthias Apitz <guru@unixarea.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: (13.1) pg_basebackups ./. pg_verifybackup
Date: Wed, 11 Aug 2021 19:09:30 +0200
Message-ID: <YRQESqSvJ3RgVnns@c720-r368166> (raw)
In-Reply-To: <YRJJMf2RGGNJbHJZ@c720-r368166>
References: <YRGMyLtdVS2jRlWd@c720-r368166>
	<2aa0a60d-881f-2c3e-9c01-82beaef1baa0@aklaver.com>
	<YRIpdgWm8hvK2LJK@c720-r368166>
	<YRJJMf2RGGNJbHJZ@c720-r368166>

El día martes, agosto 10, 2021 a las 11:38:57a. m. +0200, Matthias Apitz escribió:

> I think, I sorted it out by doing this:
> 
> I moved away the tar-archives:
> 
> $ cd /data/postgresql133/backup-20210810-1
> $ mkdir ../saved
> $ mv *.tar.gz ../saved
> 
> I unpacked 'base.tar.gz' the usual way:
> 
> $ tar xzf ../saved/base.tar.gz
> 
> but 'pg_wal.tar.gz' in the sub dir 'pg_wal':
> 
> $ cd pg_wal
> $ tar xzf ../../saved/pg_wal.tar.gz
> $ cd ..
> $ find pg_wal
> pg_wal
> pg_wal/0000000100000000000000D9
> pg_wal/archive_status
> pg_wal/archive_status/0000000100000000000000D9.done
> 
> now pg_verifybackup seems to be happy:
> 
> $ pg_verifybackup  /data/postgresql133/backup-20210810-1
> backup successfully verified
> 
> Is this the supposed way it should work? Esp. this unpacking of
> 'pg_wal.tar.gz' in a directory level below?
> 
> Ofc, one could specify the location of the WAL file with '-w path', but
> the doc only suggests this when "Try to parse WAL files stored in the
> specified directory, rather than in pg_wal. This may be useful if the
> backup is stored in a separate location from the WAL archive."
> 
> But having to unpack 'pg_wal.tar.gz' below pg_wal is not obvious. 

Could some kind sol acknowledge me that this is the correct procedure to
use pg_verifybackup? Thanks in advance

	matthias

-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
August 13: Thank you, GDR, for 28 years of peace in Europe, for 28 years
without impoverishment by Hartz IV and unemployment, for 28 years without
posters of Neonazis "GAS geben" ("Give gas") in German capital, etc. etc. etc.





view thread (11+ messages)  latest in thread

Message-ID: <YRQESqSvJ3RgVnns@c720-r368166>
Permalink:  ../YRQESqSvJ3RgVnns@c720-r368166/
Also on:    postgresql.org/message-id/YRQESqSvJ3RgVnns@c720-r368166

 · 

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 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: guru@unixarea.de
  Subject: Re: (13.1) pg_basebackups ./. pg_verifybackup
  In-Reply-To: <YRQESqSvJ3RgVnns@c720-r368166>
  References: <YRGMyLtdVS2jRlWd@c720-r368166> <2aa0a60d-881f-2c3e-9c01-82beaef1baa0@aklaver.com> <YRIpdgWm8hvK2LJK@c720-r368166> <YRJJMf2RGGNJbHJZ@c720-r368166> <YRQESqSvJ3RgVnns@c720-r368166>

* 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