pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Tena Sakai <tsakai@gallo.ucsf.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: tar, but not gnu tar
Date: Tue, 21 Aug 2007 21:33:34 -0400 (EDT)
Message-ID: <200708220133.l7M1XYt15860@momjian.us> (raw)
In-Reply-To: <FE44E0D7EAD2ED4BB2165071DB8E328C03062B59@egcrc-ex01.egcrc.org>

Tena Sakai wrote:
> Hi Everybody,
> 
> According to section 23.3.2 of 8.2.4 manual:
> 
>   Also, some versions of GNU tar consider it
>   an error if a file is changed while tar is
>   copying it. There does not seem to be any
>   very convenient way to distinguish this
>   error from other types of errors, other
>   than manual inspection of tar's messages.
>   GNU tar is therefore not the best tool for
>   making base backups.
> 
> On my linux machine, gnu tar is the tar.  Does
> anybody have a suggestion as to where I can go
> to get a tar that is not gnu?

We have updated the 8.3 documentation to be more accurate about GNU tar:

    Some backup tools that you might wish to use emit warnings or errors
    if the files they are trying to copy change while the copy proceeds.
    This situation is normal, and not an error, when taking a base backup
    of an active database; so you need to ensure that you can distinguish
    complaints of this sort from real errors.  For example, some versions
    of <application>rsync</> return a separate exit code for
    <quote>vanished source files</>, and you can write a driver script to
    accept this exit code as a non-error case.  Also, some versions of
    GNU <application>tar</> consider it an error if a file is changed
    while <application>tar</> is copying it.  Fortunately, GNU
    <application>tar</> versions 1.16 and later exit with <literal>1</>
    if files changed during the backup, and <literal>2</> for other errors.

so your version of 'tar' might be fine.

-- 
  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)  latest in thread

Message-ID: <200708220133.l7M1XYt15860@momjian.us>
Permalink:  ../200708220133.l7M1XYt15860@momjian.us/
Also on:    postgresql.org/message-id/200708220133.l7M1XYt15860@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bruce@momjian.us, tsakai@gallo.ucsf.edu
  Subject: Re: tar, but not gnu tar
  In-Reply-To: <200708220133.l7M1XYt15860@momjian.us>
  References: <FE44E0D7EAD2ED4BB2165071DB8E328C03062B59@egcrc-ex01.egcrc.org> <200708220133.l7M1XYt15860@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