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 1lYbHP-00084x-7I for pgsql-general@arkaria.postgresql.org; Mon, 19 Apr 2021 21:18:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lYbHO-0003NK-5Y for pgsql-general@arkaria.postgresql.org; Mon, 19 Apr 2021 21:18:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYbHN-0003ND-UT for pgsql-general@lists.postgresql.org; Mon, 19 Apr 2021 21:18:01 +0000 Received: from out2-50.antispamcloud.com ([185.201.17.50]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYbHL-0000d8-OA for pgsql-general@lists.postgresql.org; Mon, 19 Apr 2021 21:18:01 +0000 Received: from hp309.hostpapa.com ([69.90.160.170]) by mx133.antispamcloud.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1lYbHH-000NuW-DX; Mon, 19 Apr 2021 23:17:57 +0200 Received: from [1.144.163.173] (port=58273 helo=[192.168.20.53]) by hp309.hostpapa.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lYbGZ-002S2n-4a; Tue, 20 Apr 2021 07:17:12 +1000 From: Gavan Schneider To: Allie Crawford Cc: pgsql-general@lists.postgresql.org Subject: Re: archive_commnad parameter question Date: Tue, 20 Apr 2021 07:16:56 +1000 X-Mailer: MailMate (1.14r5798) Message-ID: <2CE08B0E-618F-42FE-8CB4-B4F160CF42B6@pendari.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed; markup=markdown Content-Transfer-Encoding: 8bit X-OutGoing-Spam-Status: No, score=-1.0 X-Get-Message-Sender-Via: hp309.hostpapa.com: authenticated_id: list.pg.gavan@pendari.org X-Authenticated-Sender: hp309.hostpapa.com: list.pg.gavan@pendari.org X-AuthUser: list.pg.gavan@pendari.org X-Originating-IP: 69.90.160.170 X-Spampanel-Domain: outgoing-shared.hostpapa.com X-Spampanel-Username: outgoingshared Authentication-Results: antispamcloud.com; auth=pass (login) smtp.auth=outgoingshared@outgoing-shared.hostpapa.com X-Spampanel-Outgoing-Class: unsure X-Spampanel-Outgoing-Evidence: Combined (0.15) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT9WLQux0N3HQm8ltz8rnu+BPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5xd7zW/oc7cWtjbMmX1hVOFQZAyfRuIGg0h4f/VdrnFktnY /ZFUjeR58gfB8axyykcGA0P8KpCYnyEHdDv7VhH5Ls7ihERwQKGjUUDYMVg1bj7plPPXPDmsXFi5 qe8p6RKwn98aPsKR7jB69UDRvOWW2rBNMmEsKEibQwSU1xBeOFYQuXvmu3H0vfzR5n87fZtXW5bR Q4/a8V+stO1dOrQCISXEW9bz0wK+PyJGCQuFJ6Df2Q1a8ykGCWeFU9TKwomDwIE7VKe+bqpcdCns 72R1bOGgNtCtR3S8cX90o5s9INFvU3wxjnLZD2LZf/3m5KWNXAy6nurqI1nlgFd5UfvxwFIfGfya Z/ZaQ5hOMrRTQvZXmJh+1a1mxej/3hKzukSjtRu5bPC8zl5GPOV9RgMxYWA4ryBb6FrOHzigF4y0 YammfZhpGDkGrvat2uAIDUqbcCEbjbqaWJiQIcFmk6Cipzi4JDWEiJuf4ysgNjLZYP+TU3e0rv2i 5tX/5w6O+ydWBb39uS1TjWG2Inx+Ts2QD1e76szsWvBsaS+KViusBg4TfS2su/byymSuqTyxp/ZE xDyRiioQmvGTre37mWh0chGFHjQ6q190o7vmaHflc4ayccihdR/aXE5fBA2YvsOCd5iXYJuZDVz9 Fg6INCqeE/FIhymrlutE6nNUgDzU0Fq83wmYJS/4aCd92YZdq37tGZVv2egm39T/ttIVOjB/Lqi5 qdcpdqU+BhmA5lIzK7reeLbiBb7RDCN+OzcC6/Eq1Lqju5Fz2X7SEuMXThmE0YQ8S0K+2P9bh5MX f5XR5EY+TJX2eaJmuJ/zSck6d/4yTP7uf2WTmwxvlkXKCmtYgJahk9Et09Bm83w9neyZ7/XL5c61 0EPVf/RKmXVTMAElCkSujm58a/xB+XC1kCc662DJ/IItqDIeuJPkGB0R4sYorHWj7X5mKUwTCmkc SUboUcANK3ozfA8QTMT8tMkmVgW9/bktU41htiJ8fk7NkI9yYjkgur7cbmMvzASyKBGn0sWyxfxq W3wxRV8iussdxQqzxYgJ4noxaUa/qrejzsknyyU0QBpiK1Qf+zrSKJ0= X-Report-Abuse-To: spam@quarantine10.antispamcloud.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 20 Apr 2021, at 7:09, Allie Crawford wrote: > 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? > my_unix_prompt> man test gives: Tests the expression given and sets the exit status to 0 if true, and 1 if false. An expression is made up of one or more operators and their arguments. In other words “test” here is a unix command which evaluated the expression supplied via the arguments. Mostly used in its alternate form of “[ … ]” in shell scripts Gavan Schneider —— Gavan Schneider, Sodwalls, NSW, Australia Explanations exist; they have existed for all time; there is always a well-known solution to every human problem — neat, plausible, and wrong. — H. L. Mencken, 1920