From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Matthias Apitz <guru@unixarea.de>
To: Vijaykumar Jain <vijaykumarjain.github@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: (13.1) pg_basebackups ./. pg_verifybackup
Date: Wed, 11 Aug 2021 15:47:57 -0700
Message-ID: <b0875454-8a52-6200-0b5b-91cf35d4c08e@aklaver.com> (raw)
In-Reply-To: <YRQwp2tnFYDejfCZ@c720-r368166>
References: <YRGMyLtdVS2jRlWd@c720-r368166>
<2aa0a60d-881f-2c3e-9c01-82beaef1baa0@aklaver.com>
<YRIpdgWm8hvK2LJK@c720-r368166>
<YRJJMf2RGGNJbHJZ@c720-r368166>
<YRQESqSvJ3RgVnns@c720-r368166>
<CAM+6J96QjiaBDKOemvqCddmrJn3PYpE_m91iyheyfE6TQUCPXA@mail.gmail.com>
<YRQwp2tnFYDejfCZ@c720-r368166>
On 8/11/21 1:18 PM, Matthias Apitz wrote:
> El día jueves, agosto 12, 2021 a las 12:47:32a. m. +0530, Vijaykumar Jain escribió:
>
>>>
>>>
>>> Could some kind sol acknowledge me that this is the correct procedure to
>>> use pg_verifybackup? Thanks in advance
>>>
>>>
>> ...
>>
>> postgres@db:~/playground/demo/basebackup$ tar xzf base.tar.gz
>> postgres@db:~/playground/demo/basebackup$ cd pg_wal/
>> postgres@db:~/playground/demo/basebackup/pg_wal$ mv ../pg_wal.tar.gz .
>> # pg_wal.tar.gz file has to uncompressed in pg_wal dir
>> postgres@db:~/playground/demo/basebackup/pg_wal$ tar xzf pg_wal.tar.gz
>> ...
>
> This is exactly the point of my question (and I figured it out too):
> Where is this explained that «pg_wal.tar.gz file has to uncompressed in
> pg_wal dir»?
Nowhere, because it doesn't per:
https://www.postgresql.org/docs/13/app-pgverifybackup.html
-w path
--wal-directory=path
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.
Along with other options for shaping the verification:
-i path
--ignore=path
Ignore the specified file or directory, which should be expressed
as a relative path name, when comparing the list of data files actually
present in the backup to those listed in the backup_manifest file. If a
directory is specified, this option affects the entire subtree rooted at
that location. Complaints about extra files, missing files, file size
differences, or checksum mismatches will be suppressed if the relative
path name matches the specified path name. This option can be specified
multiple times.
-m path
--manifest-path=path
Use the manifest file at the specified path, rather than one
located in the root of the backup directory.
-n
--no-parse-wal
Don't attempt to parse write-ahead log data that will be needed to
recover from this backup.
>
> Or, wouldn't it even be better that the files in
> pg_wal.tar.gz would have the dir pg_wal in front?
>
> matthias
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, guru@unixarea.de, vijaykumarjain.github@gmail.com
Subject: Re: (13.1) pg_basebackups ./. pg_verifybackup
In-Reply-To: <b0875454-8a52-6200-0b5b-91cf35d4c08e@aklaver.com>
References: <YRGMyLtdVS2jRlWd@c720-r368166> <2aa0a60d-881f-2c3e-9c01-82beaef1baa0@aklaver.com> <YRIpdgWm8hvK2LJK@c720-r368166> <YRJJMf2RGGNJbHJZ@c720-r368166> <YRQESqSvJ3RgVnns@c720-r368166> <CAM+6J96QjiaBDKOemvqCddmrJn3PYpE_m91iyheyfE6TQUCPXA@mail.gmail.com> <YRQwp2tnFYDejfCZ@c720-r368166> <b0875454-8a52-6200-0b5b-91cf35d4c08e@aklaver.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