Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 2DA98B5DC3F for ; Tue, 20 Sep 2011 22:58:44 -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 60972-02 for ; Wed, 21 Sep 2011 01:58:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) by mail.postgresql.org (Postfix) with ESMTP id D8BFCB5DC09 for ; Tue, 20 Sep 2011 22:58:32 -0300 (ADT) Received: by fxe4 with SMTP id 4so1118604fxe.19 for ; Tue, 20 Sep 2011 18:58:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Ws6gXuqKnJZCk/jZ65RNLDxdQP90WLixsOaZj1fH/Bo=; b=AH4zYErX0UrQuH0Ml/DhYewM+PNNWF7uwZ3GvTBogRtNRcNuZHBIZ3Lvk18+KNyJbT 1PEC2haRRKCxcelDil06O9XEB2LQhWjJlcMYg5/UAsqQ47OZqYP3KflAxF7msNgFwtOK FLSNTWaiyMYJAmAVIyFvoRFrfWNFcU/0hu0p8= MIME-Version: 1.0 Received: by 10.223.76.10 with SMTP id a10mr157101fak.30.1316570311201; Tue, 20 Sep 2011 18:58:31 -0700 (PDT) Received: by 10.152.11.35 with HTTP; Tue, 20 Sep 2011 18:58:31 -0700 (PDT) In-Reply-To: References: <1316524671.9044.12.camel@fsopti579.F-Secure.com> Date: Wed, 21 Sep 2011 10:58:31 +0900 Message-ID: Subject: Re: somewhat wrong archive_command example From: Fujii Masao To: Magnus Hagander Cc: Peter Eisentraut , pgsql-docs Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201109/57 X-Sequence-Number: 6978 On Tue, Sep 20, 2011 at 10:34 PM, Magnus Hagander wrote: > On Tue, Sep 20, 2011 at 15:17, Peter Eisentraut wrote: >> At >> http://www.postgresql.org/docs/current/static/continuous-archiving.html >> we say >> >> """ >> Many people choose to use scripts to define their archive_command, so >> that their postgresql.conf entry looks very simple: >> >> archive_command = 'local_backup_script.sh' >> """ >> >> It seems to me, however, that even a simple archive_command like that >> ought to contain at least %p, right? > > Should always need both %p and %f, no? Yes unless the script extracts the file name from the path given as %p. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center