pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: bruce@momjian.us
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-admin@postgresql.org, Tom Lane <tgl@sss.pgh.pa.us>
Cc: Tena Sakai <tsakai@gallo.ucsf.edu>
Cc: Kenneth Marshall <ktm@rice.edu>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Subject: Re: tar, but not gnu tar
Date: Fri, 14 Sep 2007 09:31:29 -0400 (EDT)
Message-ID: <200709141331.l8EDVTY25187@momjian.us> (raw)

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 <application>tar</> consider it an error
>     if a file was truncated while <application>tar</> is copying it.
>     Fortunately, GNU <application>tar</> versions 1.16 and later exits
>     with <literal>1</> if a file was changed during the backup, and
>     <literal>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 <application>tar</> return an error code
    indistinguishable from a fatal error if a file was truncated while
    <application>tar</> was copying it.  Fortunately, GNU
    <application>tar</> versions 1.16 and later exits with <literal>1</>
    if a file was changed during the backup, and <literal>2</> for other
    errors.

-- 
  Bruce Momjian  <bruce@momjian.us>          http://momjian.us
  EnterpriseDB                               http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +



view thread (16+ messages)

Message-ID: <200709141331.l8EDVTY25187@momjian.us>
Permalink:  ../200709141331.l8EDVTY25187@momjian.us/
Also on:    postgresql.org/message-id/200709141331.l8EDVTY25187@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: bruce@momjian.us, peter_e@gmx.net, tgl@sss.pgh.pa.us, tsakai@gallo.ucsf.edu, ktm@rice.edu, Kevin.Grittner@wicourts.gov
  Subject: Re: tar, but not gnu tar
  In-Reply-To: <200709141331.l8EDVTY25187@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox