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 1lYbGI-000827-HI for pgsql-general@arkaria.postgresql.org; Mon, 19 Apr 2021 21:16:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lYbGH-0000V6-G2 for pgsql-general@arkaria.postgresql.org; Mon, 19 Apr 2021 21:16:53 +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 1lYbGG-0000Uz-0Z for pgsql-general@lists.postgresql.org; Mon, 19 Apr 2021 21:16:53 +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 1lYbG9-0007Pb-28 for pgsql-general@lists.postgresql.org; Mon, 19 Apr 2021 21:16:51 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 369D75C005E; Mon, 19 Apr 2021 17:16:43 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 19 Apr 2021 17:16:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=9 I9LVonH5nBLftHkINtcSV1tLX6bAsunzPGrO+omYkw=; b=pBznkyLoaXSv6+X3I KwigPwPhyLyvemqyb3OQgNq0Uem8nj/Np/hSh6wW8agWnfL674c4XpNw+1CD/U9q IkEbPIr8RUA7+BL8GCu+dR9Q5pdISFgHiQAQkAX6djt6E/P9h5H+a3YyNw6r0lco W/Iyh5cavgyqcExTAbmal9BC4QSY8OJC5WibLbCGIGce9jikTwVOGWP2nWUZFJ1I zHNVxm5snIYKv/KkrMjFB0FbmOinAoGVRTdjzGrxxS96YiwPOTZ6BuolwryYYCy4 DlDN4W4+nlF9LbtPygw16FVhDLQ0YLaciRvBQiXuhj9b7Wb1Kf20IYbNiO96yASa 0u1eA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=fm2; bh=9I9LVonH5nBLftHkINtcSV1tLX6bAsunzPGrO+omY kw=; b=sFVPkE9X2KQKTmwLMp28qx+NtzaHZCbkUj5CMYZwwNac3Tvznc4NAQNPc WFavjAc02/S5+Knk5CzIDwjT17mqyEV5G/yGeq1p33xW13DUewmPlgTvDPSVGzQb FBFW+lKbwra23mvNCwFFqpunj2fBTpEOfATflyM1fQXXXbXkNvwHKeSTE/gdn1/Z xhhn6NNWpJBc2Fgzb318d4TDzjwd3hbWDWOSR85UmOxsRcK3UQrtrzfcs2ZddfYH U6VikVbbfb90V6A21cE25/Nzz9ZszlnQefP5AxKH99bi9OOk2bq5NQY7WGCJNKJb xwAeu33HcAV2WiU5NqsonxZr+rHuw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddtgedgudeiudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeehnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepvedufedvfeeitedtuefftedtffeltdelvdeiheel kefffedvjedtffdthefhffetnecuffhomhgrihhnpegtohhmphhuthgvrhhhohhpvgdrtg homhenucfkphepjeegrdelgedrjeefrddvvddvnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvh gvrhdrtghomh X-ME-Proxy: Received: from ranger.suse (unknown [74.94.73.222]) by mail.messagingengine.com (Postfix) with ESMTPA id 0FAD21080057; Mon, 19 Apr 2021 17:16:41 -0400 (EDT) Subject: Re: archive_commnad parameter question To: Allie Crawford , "pgsql-general@lists.postgresql.org" References: From: Adrian Klaver Message-ID: <38a9c7ef-a301-39b9-3766-85f67a6c4e17@aklaver.com> Date: Mon, 19 Apr 2021 14:16:41 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; 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 4/19/21 2:09 PM, Allie Crawford wrote: > Hello, > > I am new in PostgreSQL and I am trying to understand what the “test” > word is representing in the archive_command configuration that the > PostgreSQL documentation is showing as the format on how to set up this > parameter > > archive_command = 'test ! -f /mnt/server/archivedir/%f && cp %p > /mnt/server/archivedir/%f'  # Unix > > Does anybody know what is “test” representing in this parameter > configuration? Per the docs: "This is an example, not a recommendation, and might not work on all platforms." test in this case refers to a shell command: https://www.computerhope.com/unix/bash/test.htm So this only works in environments that have that command. > > Thank in advance for your help on this. > > Regards, > > Allie > -- Adrian Klaver adrian.klaver@aklaver.com