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 1uCedf-000Q26-6P for pgsql-general@arkaria.postgresql.org; Wed, 07 May 2025 13:16:43 +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 1uCedd-00E7ze-8R for pgsql-general@arkaria.postgresql.org; Wed, 07 May 2025 13:16:41 +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.94.2) (envelope-from ) id 1uCedc-00E7zW-Sq for pgsql-general@lists.postgresql.org; Wed, 07 May 2025 13:16:40 +0000 Received: from mail-il1-x135.google.com ([2607:f8b0:4864:20::135]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uCeda-000auI-0J for pgsql-general@lists.postgresql.org; Wed, 07 May 2025 13:16:39 +0000 Received: by mail-il1-x135.google.com with SMTP id e9e14a558f8ab-3d80bbf3aefso24640775ab.1 for ; Wed, 07 May 2025 06:16:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746623798; x=1747228598; darn=lists.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=HIWL6YZQ/oytv3IkAj7lZH+LuZhMSJy8+xXIm1POw70=; b=WPEBrt3488cRG6jTs149E18PgvujZYOzqhBoimhYwbhFMm83bjw9EeLcfuqhj6nJyp sGPI79+bjyPrx446hxC05PMr+SooooJqPKINS8BZpCmMZnfu+jkrFguCrOShBhsS2uDk U9E3up13PLM7Se8MJJat+6Yppt2r7zxD7Qo99BU/PrxQx8rA3MEZtkycMDJn/0JrWHNo sUwqCik1unU5LCcFXBh9eHWaJ+4E0CiSJryQ7CdyCBnfH/k+J9yfHC5iFm14Z5Xl4DMm lNf1xrjITN1pQQP8pK/IvN8UVU9eXcHaSVX2kh6/84J0zc5XyX6ISW3z/aUdURmcgP+m 6Gog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746623798; x=1747228598; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HIWL6YZQ/oytv3IkAj7lZH+LuZhMSJy8+xXIm1POw70=; b=XgcIKSnN9laWuR0zR5ITfKkFUtAurXPfKMc5zwAtmrrF47xGo88qqapq7Ym48cCZPd T7Jbzm0ovMqrCJas585dqLvf/brWjsU01v9rQDBi9o0TzxhUz2fyoWqy2SrDedNHNt9d ciMxqX43Iai/tTQD1QFOsE0tk/gbiYRnawJ+ZdvJtnjLwla5obwxToyT+s9zhbrvN+vP nUYaF0jdn262GZxYPyTt+Er+QrLcNX7n6u6zGioQekhFdGPITcVB9rYIzgHXQLgQecm1 DJxY2eMaL1GQlH8ej3ah040H8hzDq9vBVPsXZG/VDNyfS1V65/wXG5UYfEYZH7xY/FJb VPAA== X-Gm-Message-State: AOJu0YwjnomTVLu/qdfLgjn9ZAt2NZlGsxqqJkt/sWUWSCD5E00yzLk1 JqegmYhaPpmG5rQJ0FAgv2yXogDxlFuyy6MNt/esNxrhmoFWttwAKsAZGbzS2ZPuQOPAm0zSFRe m5KAVIZbbN+FvRBxrRuLoq+ops14= X-Gm-Gg: ASbGncujoHVmvNE7641nljyUTLZekBaWJG98jWFZQnUcebuNf1DMtvPEKA4yOunMqDZ 1WkpyRRRh+NOY7Wg4TA4ccNt7JOWD51cjl3Q0s0OJjjOgTS7dvjMNUS/NHvxhRwyfTsjMXNtzIG GePVl3oPtr+AUh+FwDdhIinLPh1JQ0qTdkSFE1Ixf45jJeqbCABUwZGzK9nqI7A8k6LA== X-Google-Smtp-Source: AGHT+IGXltgHdXReohjRwP19jYeV99RHXaSTcjFRBk9nYQdDUIM7+qQSn3GRcYjvuIWN9w8qEmemtjPjxbmTBYjdn7U= X-Received: by 2002:a05:6e02:18ca:b0:3d8:1ea5:26d1 with SMTP id e9e14a558f8ab-3da7392fec9mr34549625ab.18.1746623797668; Wed, 07 May 2025 06:16:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Greg Sabino Mullane Date: Wed, 7 May 2025 09:16:01 -0400 X-Gm-Features: ATxdqUFiFcKZaqc2TLe6sBMBWOqTFsTlwf6bsq7EZH9i_GPDlabEXZrY5AeFWvE Message-ID: Subject: Re: Pgbackrest failure for INCR and DIFF but not FULL backup To: KK CHN Cc: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000042edc06348b8b54" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000042edc06348b8b54 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 7, 2025 at 7:15=E2=80=AFAM KK CHN wrote: > *archive_command =3D 'pgbackrest --stanza=3DMy_Repo archive-push %p && cp= %p > /data/archive/%f' * > Don't do this. You are archiving twice, and worse, the first part is using async archiving. Remove that whole "cp" part. Once that is fixed, run: pgbackrest --stanza=3DMy_Repo check to verify that WAL is being archived quickly and properly. Then test your backups, checking the file /var/log/pgbackrest/My_Repo-archive-push-async.log and your postgres log if any problems arise. Cheers, Greg -- Crunchy Data - https://www.crunchydata.com Enterprise Postgres Software Products & Tech Support --000000000000042edc06348b8b54 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, May 7, 2025 at 7:15=E2=80=AFAM KK= CHN <kkchn.in@gmail.com> w= rote:
archive_command= =3D 'pgbackrest --stanza=3DMy_Repo archive-push %p && cp %p /d= ata/archive/%f'=C2=A0

D= on't do this. You are archiving twice, and worse, the first part is usi= ng async archiving. Remove that whole "cp" part. Once that is fix= ed, run:

pgbackrest --stanza=3DMy_Repo check
=

to verify that WAL is being archived quickly and proper= ly. Then test your backups, checking the file /var/log/pgbackrest/My_Repo-a= rchive-push-async.log and your postgres log if any problems arise.

Cheers,
Greg

--
Enterprise Postgres Software Products &am= p; Tech Support

--000000000000042edc06348b8b54--