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 1mDx14-0002I7-6A for pgsql-general@arkaria.postgresql.org; Wed, 11 Aug 2021 22:48:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mDx13-0001wh-4b for pgsql-general@arkaria.postgresql.org; Wed, 11 Aug 2021 22:48:05 +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 1mDx12-0001w7-31 for pgsql-general@lists.postgresql.org; Wed, 11 Aug 2021 22:48:04 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDx0z-0001ml-Gh for pgsql-general@lists.postgresql.org; Wed, 11 Aug 2021 22:48:02 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 6614D5C0107; Wed, 11 Aug 2021 18:48:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 11 Aug 2021 18:48:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=9 z8QoAkUS/HdV0a6Fe+nGolQEDtMuHs+AyWUFYwY+Qo=; b=ok6AqaE1JtaLIwPqc oIf0FFvQl3wkWJE+LwLAmCtGs256WNd2zvKMIPqU7O9N8r+d3hcC5zwsSOdJXpTo rzuWgJ4VsFBjUzWnQ62P8tCEHOIl4x5GAdS3If3L+KaJdMaCd/LjnQLhXuZ/jQos 7dRroADCs0u/SwI8MZqHYLmYqJ61JMKPnZNrC03Uf3/LKxcD8hfbRcCVpOmgwXXP RlklQ07VkIRKuCIi1XIY5lpGHCxOkJYd/Vdtwk+PetjKnMclnLCWlV5G8ZXvJ80D sEfl+eQqT4HkCzbTz7zrLyUc18sj8dZpkaJCe99PS/qXQ2wGnC54STRKlCrakB8r ecxpw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=9z8QoAkUS/HdV0a6Fe+nGolQEDtMuHs+AyWUFYwY+ Qo=; b=Oi4ok2utRvb3EzYKjBp4FwGF6Hcnkd92Kf2z/0AB5ryscfQr3JRbdqJaO TmkqBgSExu/XNsD4ztNHqsm1fMdD/oAQsWt/SvUEVZJNGEgxRYYy3uEiVmVcjzaU Z9jXrKUN0Ggqo7UGiiLV2TAp2jNpZax1fUcSma9lwKlipmnomYTE+PicUxOJUKrE NjwwJJH8anfdWI2QSXYcE0NNOWndY5J3UJt/Dohqo+pj4LfM7HKVkC15fz6fMVLd S61o4SbR1HMpjoC5Wr3H2dJ8XoyrezIxaZy7R5/Yt3ZH6zZJPyrfsdesXDXJ5L6j NmK9nId/o+MazCjtJ8LalSzFmwnAw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrkedvgddufecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpedtteeuvdfhfe ehieehhfevtddvhedtfffffefhgfejledtheeuuefgleejveegfeenucffohhmrghinhep ghiirdhpghdpphhoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgr vhgvrhdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 11 Aug 2021 18:47:58 -0400 (EDT) Subject: Re: (13.1) pg_basebackups ./. pg_verifybackup To: Matthias Apitz , Vijaykumar Jain Cc: pgsql-general References: <2aa0a60d-881f-2c3e-9c01-82beaef1baa0@aklaver.com> From: Adrian Klaver Message-ID: Date: Wed, 11 Aug 2021 15:47:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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