[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] -A option is not treating links correctly
From: |
Nathan Stratton Treadway |
Subject: |
Re: [Bug-tar] -A option is not treating links correctly |
Date: |
Wed, 3 Apr 2013 00:03:06 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Mon, Apr 01, 2013 at 15:36:41 -0500, Newman, Phillip A. (GSFC-6602) wrote:
> tar -T $one -cvf $dest/03272013.03272013.RXTE.XTE_IDX1.MASTER.gz.1.tar
> >& $log/03262013.03262013.RXTE.XTE_IDX1.MASTER.gz.1.log
> @ ktr++
> else
> tar -T $one -Avf $dest/03272013.03272013.RXTE.XTE_IDX1.MASTER.gz.1.tar
> >>& $log/03262013.03262013.RXTE.XTE_IDX1.MASTER.gz.1.log
[...]
> The first tar command works fine. The second tar command using the -A
> option faults when it encounters the first link:
>
> tar: ./RXTE/XTE_IDX1/AO1/P10255/10255-01-07-00/cal: Read error at byte 0,
> while reading 4096 bytes: Is a directory
> tar: Error is not recoverable: exiting now
The "-A" option is for appending two tar archives together; I think
the "-r" option is the one you are looking for...
$ tar --help | grep append
-A, --catenate, --concatenate append tar files to an archive
-r, --append append files to the end of an archive
[...]
Nathan
----------------------------------------------------------------------------
Nathan Stratton Treadway - address@hidden - Mid-Atlantic region
Ray Ontko & Co. - Software consulting services - http://www.ontko.com/
GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239
Key fingerprint = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239