bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Possible tar bug


From: Paul Eggert
Subject: Re: [Bug-tar] Possible tar bug
Date: Sun, 26 Dec 2010 14:01:10 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7

On 12/26/2010 11:40 AM, address@hidden wrote:
> The -r option is extactly what I want since with it the tar appends to end of 
> archive.

OK, but you're wearing out the tape drive unnecessarily, since it
reads the whole tape.  It'd be much faster to seek to the end of
the file on the tape, go back two blocks (for tar's EOF marker),
and then start tar from there.  And it'd be even faster simply
to append a new tar image to the tape, so that the tape contains
multiple files.

Anyway, I suspect your tape got polluted with a ustar-format
archive; perhaps you used another version of tar, or tar with
some unusual options, to create it in the first place; or maybe
it just had some leftover data on it that happened to look like
a ustar-format archive.  To avoid this problem in the future,
please make sure you use 'tar -c' the first time you write to
the tape, and use 'tar -r' only after the tape is safely initialized.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]