Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDrje-0003Dz-IL for pgsql-general@arkaria.postgresql.org; Wed, 11 Aug 2021 17:09:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mDrja-0004wC-Ja for pgsql-general@arkaria.postgresql.org; Wed, 11 Aug 2021 17:09:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDrja-0004w3-Ad for pgsql-general@lists.postgresql.org; Wed, 11 Aug 2021 17:09:42 +0000 Received: from ms-10.1blu.de ([178.254.4.101]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDrjT-0007ZK-GL for pgsql-general@lists.postgresql.org; Wed, 11 Aug 2021 17:09:41 +0000 Received: from [188.174.62.251] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDrjP-0002jL-RH for pgsql-general@lists.postgresql.org; Wed, 11 Aug 2021 19:09:31 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.16.1/8.14.9) with ESMTPS id 17BH9U7a002871 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Wed, 11 Aug 2021 19:09:30 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.16.1/8.14.9/Submit) id 17BH9Uno002870 for pgsql-general@lists.postgresql.org; Wed, 11 Aug 2021 19:09:30 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Wed, 11 Aug 2021 19:09:30 +0200 From: Matthias Apitz To: pgsql-general@lists.postgresql.org Subject: Re: (13.1) pg_basebackups ./. pg_verifybackup Message-ID: Reply-To: Matthias Apitz References: <2aa0a60d-881f-2c3e-9c01-82beaef1baa0@aklaver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 13.0-CURRENT r368166 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.62.251 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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.