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.96) (envelope-from ) id 1vuufr-00CboA-1s for pgsql-general@arkaria.postgresql.org; Tue, 24 Feb 2026 15:50:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vuufq-001clH-0o for pgsql-general@arkaria.postgresql.org; Tue, 24 Feb 2026 15:50:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vuufp-001cl8-2q for pgsql-general@lists.postgresql.org; Tue, 24 Feb 2026 15:50:09 +0000 Received: from mail-oo1-xc2f.google.com ([2607:f8b0:4864:20::c2f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vuufm-00000000yjL-2SUx for pgsql-general@postgresql.org; Tue, 24 Feb 2026 15:50:08 +0000 Received: by mail-oo1-xc2f.google.com with SMTP id 006d021491bc7-66e3100515dso3315044eaf.2 for ; Tue, 24 Feb 2026 07:50:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771948207; cv=none; d=google.com; s=arc-20240605; b=NnS5SHB7wftSN+UaRFF0KYL2LDZxnZqk1OvyoluOfbhBo0ARk8nl39satYx+LsjpkA fOyX1E/8zPwcmDtihmlB2967uQANzdSVgYprz4oruefZ+LO55flFEFqHu3Q8HXE9XuPz 7yB1a6xKxKbiK4yARdQDx/zlusF0AEXEDlZkqV2FGA3njy3CPTkMOr/9E0RYntARYvVJ UMZ/ph4d1y9IxQwIJnaHFYWqpb6WOi/RMTPsAmD0f5yey/4vt75U9i6ZmSEXiYOKRm+R JDVj9z2p0Oh6HY0muYSqJ2M/GtSS5gx16UwJj63UgeyK8s7odEDTD1wYyYDSfYefcTu4 Lirg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=VcIPlbONJ42IB2jPJvica2DFx94DBxX8SbP/QDkyzMw=; fh=qDKhmZZwk02KsKWIk1HxqfXWbdkUUA+FsDakiBO/tH4=; b=Xp9hBmbSb7c3gMitO5diGiCB3V5GP+NGs5p9oUaGQ7MhkSxxHqCioWp03quIpVk5Kg 2lmrtqGy6A9PgMTqZul4Skk2HqNCQBV047hfQMEy/jT1sF0Fb1RlYtuVESkKwLovFrtk 9W8tDtBmYMF5VqtZRlQ/XKXyCDFawwG1rygWFCu7UaOJHjEZoq9zHZIfNXgqRpOQTJ3t A3Fx/zmcgGtGFadwSndA93eB2Sj+p3zMaDlWYUMYUkk4xLcmoDD1SNkS253lg+DzGECP 5Obs4GjlGYSONnsTZqwHK9Cmkl/e0Ee7Zaltlx8aHFB0btuHn70tvMnYNqMf2KmHWjL3 IomA==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771948207; x=1772553007; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=VcIPlbONJ42IB2jPJvica2DFx94DBxX8SbP/QDkyzMw=; b=MkftmPM5xcmtRGyzc7ZS/2X+PHmHJ4jiwLg7GKoxcHqQdeHTnlWdPlgRCS+szAx3+T 1Ar1aHVS7qQxON6cVJmiJy5Nkz6hwpQ4AvkV8v9go1Jpg0ysaCf0oi3187zERpO28zWt x3ZvP8fIPaQ914TNLwb+UZYehoXFmrDmuomyDkk5FzLQKkAVbxtKuh4nsX0foj2OYCJ5 tOO/J14hZ1RCkoDQp3m3O8tS+JFxzaX1pWpF5llr92+UFb+uIGJEdxyqTj82OFGgOoFV khZDwbdOFAjz4rB+wj2gj5XX0jAn/TO4MLZF4nTgBWHCOXAxpkzpCxPVVMEqWCxaMczV F9bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771948207; x=1772553007; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VcIPlbONJ42IB2jPJvica2DFx94DBxX8SbP/QDkyzMw=; b=XNhBs1uO+DxM3jB0/aco5utpwNeU2KCXrIraDNnt09QnD+XZjidpA0bYmU8kyJ18DT GdNR8y3yxOairJ4hkhjPXaaKrWq2yd95di4l+PCkcxoDjcLZqBCkB3Eymh3GD2ZUvPI5 b65Mjxyglug1UQzDmzTm8I7I4Q3T31jUpNucLGXDYuYqhPyekRrF8ikMUqUp/+QLyNp5 cdpfrYWp6ea6Na3GMRHlqlm2DRMMU2V7kR25OMX5U43mv4cj6tkyj8Sl3IygPWNMf2eM f/VmOiawr3oeLOR3VHCTZ5h4Yp15dOyzms2KlVH3duwA9mTSajVYeIyBYHsRrTfOXVCu kRXw== X-Gm-Message-State: AOJu0YzPXm6FvZD/tpIXIAU60PoLVXqq4TwHIGbV8q6+Y3ZNTgOOQlYL nzLf+CSqdNw7Ff/pqj1olV4QQwngscF5I+eDO8QLowO+kBFYrLdBhNJvpv5c7g9dbaqz0X3frHK EU5PYRJhoqoL5eNyakO7hExTcUOx51KhKOQ== X-Gm-Gg: AZuq6aIbFANB/rne5ktFu2aHdfuv05kL/yLHxSEpmGHeB5M4VdNDkU2aLeA7Xa5nwih LlMfxwba1BTYce2lyeR6bYVrZu3RdE8Sec6rntg+91/6uSbrEJEqMfnuKXgBqYz0NH4sHp0fgAj /nl/s5uPfGa4OjT8AQgM7az/TX1Vku7OZqXPMTA5Vsnam23cMxuYkx0O9yq6VTb/vKAw3pYzULw dkWWkl2jSVvbhmTT8/rxB3DMQmlvFr1w2rfgwj0S5JtdwOZk01536yT1PDoHyhQgXTA+yTUNopT Adf6UxqVo2V4t2wfl2Lfma3t9MuMBzci4dvAoL1DduxUmRo/f2nP X-Received: by 2002:a05:6820:4611:b0:65c:a528:bb6d with SMTP id 006d021491bc7-679c42418e7mr5111489eaf.7.1771948207001; Tue, 24 Feb 2026 07:50:07 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Greg Sabino Mullane Date: Tue, 24 Feb 2026 10:49:30 -0500 X-Gm-Features: AaiRm51hQ5fg_ht-ReIX-ls29u-yHBgETfv8sgAVFtyxf_UJJ5Euea0Vo0okfFg Message-ID: Subject: Re: pgbackrest after a network outage unable to perform backup [fails always] To: KK CHN Cc: pgsql-general Content-Type: multipart/alternative; boundary="0000000000007056c0064b93d7a5" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000007056c0064b93d7a5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 24, 2026 at 5:18=E2=80=AFAM KK CHN wrote: > This goes for hours now, not yet finished. Is this normal behaviour ? > Yes, if there is a lot of WAL My goal is to initiate a full backup afresh on the reposerver , so it > doesn't matter all the old piled up WAL files > You will need to (carefully!) disable pgbackrest archiving, clean up the old WAL, then start it up again. Basic sequence: 1. Set archive_command to '/bin/true' 2. Kill any existing pgbackrest processes, empty out the spool directory 3. Wait for Postgres to cleanup / recycle the WAL (speed up with a manual CHECKPOINT) 4. Restore your archive_command to the pgbackrest version 5. Run pgbackrest check to verify WALs are being archived again 6. Run a full backup Ideally, test these steps on a dev system, and understand why each step and why in that order. :) Cheers, Greg -- Crunchy Data - https://www.crunchydata.com Enterprise Postgres Software Products & Tech Support --0000000000007056c0064b93d7a5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Feb 24, 2026 at 5:18=E2=80=AFAM K= K CHN <kkchn.in@gmail.com> = wrote:
This goes for hou= rs now, not yet finished. Is this normal behaviour ?

Yes, if there is a lot of WAL

My goa= l is to initiate a full backup afresh on the reposerver , so it doesn't= matter all the old piled up WAL files

You will need to (carefully!) disable pgbackrest archiving, clean u= p the old WAL, then start it up again. Basic sequence:

=
1. Set archive_command to '/bin/true'
2. Kill any ex= isting pgbackrest processes, empty out the spool directory
3. Wai= t for Postgres to cleanup / recycle the WAL (speed up with a manual CHECKPO= INT)
4. Restore your archive_command to the pgbackrest version
5. Run pgbackrest check to verify WALs are being archived again
6. Run a full backup

Ideally, test these st= eps on a dev system, and understand why each step and why in that order. :)= =C2=A0

=C2=A0
Cheers,
Greg
--
Enterpris= e Postgres Software Products & Tech Support

<= /div>
--0000000000007056c0064b93d7a5--