Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uqRcZ-0069AP-HJ for pgsql-admin@arkaria.postgresql.org; Mon, 25 Aug 2025 07:28:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uqRcY-006vWR-W3 for pgsql-admin@arkaria.postgresql.org; Mon, 25 Aug 2025 07:28:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uqRcY-006vWI-K1 for pgsql-admin@lists.postgresql.org; Mon, 25 Aug 2025 07:28:03 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uqRcW-001ik4-2c for pgsql-admin@lists.postgresql.org; Mon, 25 Aug 2025 07:28:02 +0000 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-afcb7a16441so636308166b.2 for ; Mon, 25 Aug 2025 00:28:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1756106880; x=1756711680; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=EFukMeNyvwDBMKkBqIy0MHtgUfmfu4JxFfyWhhZLTfs=; b=PWRvoAb9bIGFBt5jNwh1xwCZLhfXy6crn0lylivbRME3TdE1mAJgp+SKc+4/euNy9U BP8LX5ZidPtPPd/AGceYO3kTc9p4tfB02vFUxQxuKDD0jQ+0Vf5dB/ETRsKypItYm7Qe ew/P5V0a6A7xc+8E8yI27cpCW0Gd9PXk52wh8DY1T211bD3oWq1Pa2xa/tlygDsE+BXM 5Iv9y/SySYEBwOCkuBkoYA3Y0/L+LWoGgW0CWhLrhkmH4bsB5Mt03G7neeczJ4o9RLZi M30gQK1ILmpYMGhCAdi0KZ7Gf0nuL3bfOYT4NSb01LMtUbfXHiZ2rbH6rK0lF6Omf+eB 3aHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756106880; x=1756711680; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=EFukMeNyvwDBMKkBqIy0MHtgUfmfu4JxFfyWhhZLTfs=; b=eVrP7eCbm+qtlhDsm/nr88xx1usfCPsXikwjJLcjjnhy3EtZsRlAWd07N3ZPoHZ+tO PI/vl4wilgVvC8CA8Hd3QXs5W7TiGcM8TMepEokNgkU71nqy5Qr9XuIAXBgimt+NA/YY C1IeWkAaGVXveTsXOxVETTEjZhFChvOkOhLUDN3l21y4V+DRptDNeBbJYOm0et0U98dm ydzr9kHXeYq+vRrMor0NWVBCgwoT/LQxZkjS/S7HuW073r4VbswkEyf9ay6ZlaGwVg32 ftCrJz+1AKcdDG2mULFQ8SSHRJOHHl/s3xVaQ9ugqxPvNamng2ELfxMQDE8WKTDB8y69 0NZA== X-Forwarded-Encrypted: i=1; AJvYcCURm8nh8RavcQiQQaIxSxWRCDO+kMJaOAD08LXHIUjaHyQmKcrIp0BGP87qrlxqSrlPh7KXm0/gVoK1TA==@lists.postgresql.org X-Gm-Message-State: AOJu0YxZHitRBj4nkdcinooJhKHzWl48CIAAoedi/ydjrh4Q9b7CAG9w dmFRsCzLIALX5lDzqeC38NRLvdrI6jjW9MFdbBzlIFN8U4Lte/PaaNImt/DwKI8wESU= X-Gm-Gg: ASbGnctHJLwCRv2dE6+CyaWq4t8ZLvmD9GVcNXBYjviKKXDHyk5hvqgiJSJqIvL06qe DqVOTho9M26ruQqC91NsfqWNa2024gH0jRs0yGGvkQkuiUcLmU5a7gNUSgu7KR+8MQsVFCJgU+T FQk/UuwyR2F9fZS4l6AHkcHRi37kdyzQbrgwKhrhRyH5u8G8r/lyglw83668ebBkw7JHXOY5o0Z 6SgU4Q9y7ws8u6ol/+vfEy6tGpLNA0rCRduV5GDbafEAO312FSQP/ZUxSQWicbO2TRIB+qMDvG2 lKnr2t7oDkau9bgqyEUdWDZd7rlUHQXz1pV4P4KBHNmttFqLXlFNvACS/bZ4o2jtVL7s2nj9wAA sWsBeRyU+eVqOBCcbDaiIh7He5/zRh3dg36Os4Y1DDos2ikDY2g== X-Google-Smtp-Source: AGHT+IH1a8R5RBBC8t4Iz87euhIZX1HqnVJ5KBnEf11q4YtAXQER1Yb1/Jk0DwxqYmNZYyZ4JIcVsg== X-Received: by 2002:a17:907:7fa4:b0:afe:8aaf:7b9 with SMTP id a640c23a62f3a-afe8aaf0958mr90484966b.23.1756106879745; Mon, 25 Aug 2025 00:27:59 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:5e:8058:762e:f0c2:619d:667]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-afe492d83dbsm511597966b.71.2025.08.25.00.27.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Aug 2025 00:27:58 -0700 (PDT) Message-ID: <27ff6d69809fe9090b4f8a3bfa0f30e9670b0d1a.camel@cybertec.at> Subject: Re: Associating a pg_basebackup .backup file with it's saveset? From: Laurenz Albe To: Ron Johnson , Pgsql-admin Date: Mon, 25 Aug 2025 09:27:57 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-1.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, 2025-08-23 at 09:56 -0400, Ron Johnson wrote: > I'm archiving WAL files and taking basebackups. >=20 > At some point, when I'm ready to delete the oldest basebackup directory, > I'll also of course need to run "pg_archivecleanup=C2=A0/Database/backups= /wals mumble". >=20 > The .backup file is not in the=C2=A0pg_wal.tar file, so=C2=A0how do I kno= w which .backup file to use? One thing you can use is the "backup_label" file in the base backup. Its first line will look like START WAL LOCATION: 0/B000028 (file 00000001000000000000000B) You would have to extract the WAL file name from the text. Yours, Laurenz Albe