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 1mDBg0-0002sV-T5 for pgsql-general@arkaria.postgresql.org; Mon, 09 Aug 2021 20:15:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mDBfz-0004lb-RW for pgsql-general@arkaria.postgresql.org; Mon, 09 Aug 2021 20:15:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDBfz-0004lT-IS for pgsql-general@lists.postgresql.org; Mon, 09 Aug 2021 20:15:11 +0000 Received: from ms-10.1blu.de ([178.254.4.101]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDBfw-0003KN-T2 for pgsql-general@lists.postgresql.org; Mon, 09 Aug 2021 20:15:10 +0000 Received: from [188.174.57.135] (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 1mDBfv-0006Qy-7M for pgsql-general@lists.postgresql.org; Mon, 09 Aug 2021 22:15:07 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.16.1/8.14.9) with ESMTPS id 179KF5R9019864 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Mon, 9 Aug 2021 22:15:05 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.16.1/8.14.9/Submit) id 179KF4IA019863 for pgsql-general@lists.postgresql.org; Mon, 9 Aug 2021 22:15:04 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Mon, 9 Aug 2021 22:15:04 +0200 From: Matthias Apitz To: pgsql-general@lists.postgresql.org Subject: (13.1) pg_basebackups ./. pg_verifybackup Message-ID: Reply-To: Matthias Apitz MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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.57.135 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, We do backups with something like: $ pg_basebackup -U ${DBSUSER} -Ft -z -D ${BACKUPDIR}-${DATE}-${NUM} and they seems to work fine: $ ls -l backup-20210809-1/ total 7656108 -rw------- 1 postgres postgres 4191873 Aug 9 14:19 backup_manifest -rw------- 1 postgres postgres 7835635150 Aug 9 14:19 base.tar.gz -rw------- 1 postgres postgres 17671 Aug 9 14:19 pg_wal.tar.gz But, if I verify the backup with $ pg_verifybackup /data/postgresql13/backup-20210809-1 it gives thousands of error messages like pg_verifybackup: error: "base/1032792/1034229" is present in the manifest but not on disk pg_verifybackup: error: "base/1076178/1101524" is present in the manifest but not on disk and at the end: pg_waldump: error: could not open directory "/data/postgresql13/backup-20210809-1/pg_wal": No such file or directory pg_verifybackup: error: WAL parsing failed for timeline 1 The base files are there: $ find /data/postgresql13 -name 1101524 /data/postgresql13/data/base/1076178/1101524 $ find /data/postgresql13 -name pg_wal /data/postgresql13/data/pg_wal What we do wrong here with pg_verifybackup? Thanks matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub 27.7.1900: Kaiser Wilhelm II Deutsches Ostasiatisches Expeditionskorps, target China 02.8.2021: Deutsche Kriegsministerin Kramp-Karrenbauer Fregatte "Bayern", target China