X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 215D511F6C67 for ; Sat, 1 Apr 2006 06:44:45 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28109-03 for ; Sat, 1 Apr 2006 06:44:44 -0400 (AST) X-Greylist: delayed 04:34:36.396582 by SQLgrey- Received: from p0f.net (p0f.net [193.77.154.190]) by postgresql.org (Postfix) with ESMTP id 887CC11F6C5A for ; Sat, 1 Apr 2006 06:44:42 -0400 (AST) Received: from [10.10.190.53] ([193.77.165.58]) (authenticated bits=0) by p0f.net (8.13.3/8.13.3) with ESMTP id k31A5NVw026893 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 1 Apr 2006 12:05:26 +0200 Message-ID: <442E59AA.7010106@p0f.net> Date: Sat, 01 Apr 2006 12:44:58 +0200 From: Grega Bremec Organization: P0F User-Agent: Mozilla Thunderbird 1.0 (X11/20041207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org CC: Rajesh Kumar Mallah Subject: Re: FW: Setting up of PITR system. References: <442B93DD.4020305@p0f.net> <442E1945.4030006@p0f.net> In-Reply-To: <442E1945.4030006@p0f.net> X-Enigmail-Version: 0.93.0.0 OpenPGP: id=E077F97A Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.833 required=5 tests=[AWL=0.120, RCVD_IN_NJABL_DUL=1.713, UPPERCASE_25_50=0] X-Spam-Score: 1.833 X-Spam-Level: * X-Archive-Number: 200604/5 X-Sequence-Number: 21174 -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Grega Bremec wrote: | ~ find ${WAL_ARCHIVE} -type f | sort -g | while read archive; do | ~ if [ ! "${archive}" = "${REF_FILE}" ]; then Actually, this test is only possible since ${REF_FILE} was expanded using the ${WAL_FILE} mask and will contain full path to the log; if you used your old method to obtain ${REF_FILE}, it will NOT match here, as it only contains the filename. You should write the test like this: ~ if [ ! "`basename ${archive}`" = "${REF_FILE}" ]; then ~ ... Kind regards, - -- ~ Grega Bremec ~ gregab at p0f dot net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFELlmqfu4IwuB3+XoRA7PNAJ9Ks5+6l0dmAgeIixcofNTUjXy3FgCfT+D1 kNvLWQIlKuo+GzF05IfPu2U= =aiNg -----END PGP SIGNATURE-----