Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 475EA9F99FD for ; Fri, 14 Sep 2007 10:31:38 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 48041-10 for ; Fri, 14 Sep 2007 10:31:17 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from momjian.us (momjian.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 56EF59F99FA for ; Fri, 14 Sep 2007 10:31:34 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id l8EDVTY25187; Fri, 14 Sep 2007 09:31:29 -0400 (EDT) From: Bruce Momjian Message-Id: <200709141331.l8EDVTY25187@momjian.us> Subject: Re: tar, but not gnu tar In-Reply-To: To: bruce@momjian.us Date: Fri, 14 Sep 2007 09:31:29 -0400 (EDT) CC: Peter Eisentraut , pgsql-admin@postgresql.org, Tom Lane , Tena Sakai , Kenneth Marshall , Kevin Grittner X-Mailer: ELM [version 2.4ME+ PL123] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/99 X-Sequence-Number: 26860 bruce wrote: > > > ISTR that the original caution was against writing scripts that assume > > > anything being emitted to stderr must indicate a problem. > > > > The relevant NEWS entry from GNU tar 1.16 is: > > > > """ > > * After creating an archive, tar exits with code 1 if some files were > > changed while being read. Previous versions exited with code 2 (fatal > > error), and only if some files were truncated while being archived. > > Docs updated and backpatched to 8.2.X: > > Also, some versions of GNU tar consider it an error > if a file was truncated while tar is copying it. > Fortunately, GNU tar versions 1.16 and later exits > with 1 if a file was changed during the backup, and > 2 for other errors. I have updated the documentation to mention that the real problem is an "indistinguishable" error return code: Also, some versions of GNU tar return an error code indistinguishable from a fatal error if a file was truncated while tar was copying it. Fortunately, GNU tar versions 1.16 and later exits with 1 if a file was changed during the backup, and 2 for other errors. -- Bruce Momjian http://momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +