Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XJo8X-0008TK-5f for pgsql-docs@arkaria.postgresql.org; Tue, 19 Aug 2014 18:28:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XJo8V-0005ri-Vz for pgsql-docs@arkaria.postgresql.org; Tue, 19 Aug 2014 18:28:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XJo8V-0005rZ-32 for pgsql-docs@postgresql.org; Tue, 19 Aug 2014 18:27:59 +0000 Received: from 01.zmailcloud.com ([192.198.85.104] helo=mx-out-1.zmailcloud.com) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XJo8Q-0008Ao-4V for pgsql-docs@postgresql.org; Tue, 19 Aug 2014 18:27:57 +0000 Received: from smtp.01.com (smtp.01.com [10.10.0.43]) by mx-out-1.zmailcloud.com (Postfix) with ESMTP id B1221563F3B; Tue, 19 Aug 2014 13:27:51 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 9C775A03EF; Tue, 19 Aug 2014 13:27:51 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V8BfZdCBK1TJ; Tue, 19 Aug 2014 13:27:51 -0500 (CDT) Received: from smtp.01.com (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 77C8FA0406; Tue, 19 Aug 2014 13:27:51 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 6777FA0404; Tue, 19 Aug 2014 13:27:51 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id prQKFN6KfrAm; Tue, 19 Aug 2014 13:27:51 -0500 (CDT) Received: from [172.47.23.104] (70-36-143-82.dsl.dynamic.sonic.net [70.36.143.82]) by smtp-out-1.01.com (Postfix) with ESMTPSA id 8D1BCA03EF; Tue, 19 Aug 2014 13:27:50 -0500 (CDT) Message-ID: <53F39723.9070503@agliodbs.com> Date: Tue, 19 Aug 2014 11:27:47 -0700 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Tom Lane CC: Magnus Hagander , Kevin Grittner , Peter Eisentraut , MauMau , "pgsql-docs@postgresql.org" Subject: Re: Sample archive_command is still problematic References: <53E5603B.5040102@agliodbs.com> <1407777686.41146.YahooMailNeo@web122306.mail.ne1.yahoo.com> <0F73426A2EA544878BCAC33BB989D671@maumau> <53EBCCEA.3090604@gmx.net> <1407965034.12878.YahooMailNeo@web122304.mail.ne1.yahoo.com> <53F233E1.3030605@agliodbs.com> <5718.1408383072@sss.pgh.pa.us> <53F38726.2040804@agliodbs.com> <8453.1408469974@sss.pgh.pa.us> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org On 08/19/2014 10:39 AM, Tom Lane wrote: > Josh Berkus writes: >> Well, if we want a sample command in the docs, then we should actually >> give a few different sample commands and even a sample shell script. If >> we give the users several alternatives, maybe they'll actually think >> about it instead of just C&P. > > Sure, if we can think of some plausibly different samples. I was thinking: 1. noclobber copy to a local/mounted dir (the current example) 2. rsync to a remote dir with overwrite 3. windows command example (hopefully using rsync ... can anyone help with this?) 4. Simple bash script example using rsync to a target server, with noarchiving touch file etc. I'd also like to mention pg_receivexlog, Barman, WAL-E, and RepMgr as external utilites and alternatives. -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs