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 1rYMqH-00Fcnp-CW for pgsql-docs@arkaria.postgresql.org; Fri, 09 Feb 2024 09:06:41 +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 1rYMqG-007NqY-4U for pgsql-docs@arkaria.postgresql.org; Fri, 09 Feb 2024 09:06:40 +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 1rYMqF-007NqQ-RC for pgsql-docs@lists.postgresql.org; Fri, 09 Feb 2024 09:06:39 +0000 Received: from smtp3-g21.free.fr ([212.27.42.3]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rYMq8-005rN7-N5 for pgsql-docs@lists.postgresql.org; Fri, 09 Feb 2024 09:06:38 +0000 Received: from zimbra-e1-02.priv.proxad.net (unknown [172.20.243.240]) by smtp3-g21.free.fr (Postfix) with ESMTP id 13E9113F861; Fri, 9 Feb 2024 10:06:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1707469589; bh=Vh5lmt384hlcuK/lY/bt292wi9uN7RQF0/Jc73FPlvg=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=i+o+xrXZMOZ+CCOZlBOfOLuLMJi/8YvtgQgyLE4XLlFWw87psYSLfs75pHJnxDAFs v5nKD3zRbAKU3euFFrMS29xvLEH5MMJJAiLZSCIshWtjB+NYH52pfB/ZJp3kimz8Z0 r3HF5R6KrizYXmUTcsssjMwwGyN+N17j85egbZg7gTCnpM4LsA9RVgd5bvbd9dpbyQ aSvPAzqnIzYEhHFKjjqV0WW1NLUT3r8TZT55w/gsCJbyl5kUMSUKtnEW+cDGJ4TSSF u4CnndvfT1IgJkeOFn5yL8tuhCIzlCsM6bkLxERi8LDGKc3DPMTV0PpYbDRdeu/vqZ agv0Lmv+NAW2Q== Date: Fri, 9 Feb 2024 10:06:28 +0100 (CET) From: gparc@free.fr To: Stephen Frost Cc: pgsql-docs Message-ID: <1787777342.368448490.1707469588843.JavaMail.zimbra@free.fr> In-Reply-To: References: <170738227967.3279716.16428042124969376330@wrigleys.postgresql.org> <705658729.361810855.1707401435362.JavaMail.zimbra@free.fr> Subject: Re: Add a different archive_command example for Linux / Unix MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [145.242.20.116] X-Mailer: Zimbra 9.0.0_GA_1337 (ZimbraWebClient - FF115 (Linux)/9.0.0_GA_1337) Thread-Topic: Add a different archive_command example for Linux / Unix Thread-Index: zc2VQzaBWMOtgPcSDZ5jll2xqtp/4Q== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Stephen, For the missing fsync directory, in case of a system crash which I had in m= ind using this command, I thought that fsck will fixed the discrepancy. I support your proposal i.e. archive_command =3D 'backup_tool %p /mnt/serve= r/archivedir/%f' as at least people will investigate what choices they have for backup tools= . Regards Gilles ----- Mail original ----- > De: "Stephen Frost" > =C3=80: "gparc" > Cc: "gparc" , "pgsql-docs" > Envoy=C3=A9: Jeudi 8 F=C3=A9vrier 2024 22:54:29 > Objet: Re: Add a different archive_command example for Linux / Unix > Greetings, >=20 > * gparc@free.fr (gparc@free.fr) wrote: >> Thanks Stephen for your detailed reply and broad perspective. >> But I see the cp example command used **as is** most of the time. >=20 > In those cases- how would changing it to be a dd command be helpful? > The directory still wouldn't be fsync'd and there's a very good chance > that the rest of the documentation isn't followed or understood either, > leading almost certainly to broken backup setups. This wouldn't be the > only issue in any case, to be sure. >=20 > This comes back to my earlier suggestion that perhaps we should just > change it to something like: >=20 > archive_command =3D 'backup_tool %p /mnt/server/archivedir/%f' >=20 > and not talk about specific tools that exist but don't perform in the > manner we actually expect from an archive command that we're using. We > already make it pretty clear to anyone who knows the tools mentioned > that the 'example' command won't work, if you read everything under that > section. >=20 > Alternatively, we could actually document the tools we're aware of that > do work and which do strive, at least, to try and be good backup tools > and good archive commands for PG. That would certainly be a service to > our users and might result in far fewer misconfigured systems using the > examples because they thought (despite the explicit note in our > documentation) that they were recommendations. >=20 > Thanks, >=20 > Stephen