Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id DB0DAB5DC13 for ; Wed, 21 Sep 2011 22:00:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 18132-05 for ; Thu, 22 Sep 2011 01:00:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from oproxy5-pub.bluehost.com (oproxy5-pub.bluehost.com [67.222.38.55]) by mail.postgresql.org (Postfix) with SMTP id 76DACB5DC3C for ; Wed, 21 Sep 2011 22:00:50 -0300 (ADT) Received: (qmail 28352 invoked by uid 0); 22 Sep 2011 01:00:49 -0000 Received: from unknown (HELO host159.hostmonster.com) (74.220.207.159) by cpoproxy2.bluehost.com with SMTP; 22 Sep 2011 01:00:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=timbira.com; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=XLlrpVDlCl2lHQe/16ilgL7O4twnymvr9a0xui4JE4c=; b=MydSTJ7LeHUaaDeLnB+zSwTW4+uL9KEm6Utb3ij/QOwV2Uoj2iQzzXWXcVoCQ+FjTa8/uFyCsOBFPH3AxfCvhMM1QYkjldjJp3+wO0HxFMHcKbPurFXj2521M3KXPjjk; Received: from [177.0.28.197] (helo=[10.3.2.2]) by host159.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R6Xei-0002Te-Ug; Wed, 21 Sep 2011 19:00:49 -0600 Message-ID: <4E7A887F.8010908@timbira.com> Date: Wed, 21 Sep 2011 21:59:43 -0300 From: Euler Taveira de Oliveira User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Icedove/3.1.13 MIME-Version: 1.0 To: Greg Smith CC: pgsql-docs@postgresql.org Subject: Re: somewhat wrong archive_command example References: <1316524671.9044.12.camel@fsopti579.F-Secure.com> <4E794FB5.80400@2ndQuadrant.com> <1316613536.14119.6.camel@fsopti579.F-Secure.com> <4E7A6D0D.4060106@2ndQuadrant.com> In-Reply-To: <4E7A6D0D.4060106@2ndQuadrant.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {1651:host159.hostmonster.com:timbirac:timbira.com} {sentby:smtp auth 177.0.28.197 authed with euler@timbira.com} X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201109/69 X-Sequence-Number: 6990 On 21-09-2011 20:02, Greg Smith wrote: > Attached version fixes the late night brain fade errors. I think the right > thing to do next is to package this up into a doc update that corrects the > errors in that section too; just clean the whole thing up while I'm poking at > it. I'll submit that over to the hackers list so that everyone can take a shot > at correcting my shell code. > Just a few comments: (i) full path for ARCHIVE (say /path/to/archive) and backup_in_progress. Absolute paths are easier to check than relative ones; (ii) is echo with unquoted string portable? I don't know but it confuses readability. -- Euler Taveira de Oliveira - Timbira http://www.timbira.com.br/ PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento