How to add files into a tar file
am 08.02.2006 02:59:38 von MoonI want add file into to a tar file(just append file at the end of tar. how
to do this ?
e.g. Now, I am using tar cvf /dev/rmt/0m /data/* . Each time overwrite the
tape.
I want add file into to a tar file(just append file at the end of tar. how
to do this ?
e.g. Now, I am using tar cvf /dev/rmt/0m /data/* . Each time overwrite the
tape.
moon wrote:
> I want add file into to a tar file(just append file at the end of tar. how
> to do this ?
>
> e.g. Now, I am using tar cvf /dev/rmt/0m /data/* . Each time overwrite the
> tape.
have you looked the tar manual page ?
In article
"moon"
> I want add file into to a tar file(just append file at the end of tar. how
> to do this ?
>
> e.g. Now, I am using tar cvf /dev/rmt/0m /data/* . Each time overwrite the
> tape.
Use the "r" operation instead of "c" to append files to an existing
archive.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
Jean-Louis Liagre zat achter de pc en typte:
> have you looked the tar manual page ?
Maybe he can find something like:
tar uf $FILE $PATH
Peter
--
http://k6.xs4all.nl mailto:peter@k6.xs4all.nl
Peter Terpstra wrote:
> Jean-Louis Liagre zat achter de pc en typte:
>
>> have you looked the tar manual page ?
>
> Maybe he can find something like:
>
> tar uf $FILE $PATH
>
> Peter
>
That's not the faster option.
I tried before. 'r' just for tar file into file(*.tar) not for tape.
"Barry Margolin"
news:barmar-EA69E2.21112807022006@comcast.dca.giganews.com.. .
> In article
> "moon"
>
>> I want add file into to a tar file(just append file at the end of tar.
>> how
>> to do this ?
>>
>> e.g. Now, I am using tar cvf /dev/rmt/0m /data/* . Each time overwrite
>> the
>> tape.
>
> Use the "r" operation instead of "c" to append files to an existing
> archive.
>
> --
> Barry Margolin, barmar@alum.mit.edu
> Arlington, MA
> *** PLEASE post questions in newsgroups, not directly to me ***
> *** PLEASE don't copy me on replies, I'll read them in the group ***
moon wrote:
> I tried before. 'r' just for tar file into file(*.tar) not for tape.
>
>
> "Barry Margolin"
> news:barmar-EA69E2.21112807022006@comcast.dca.giganews.com.. .
>> In article
>> "moon"
>>
>>> I want add file into to a tar file(just append file at the end of tar.
>>> how
>>> to do this ?
>>>
>>> e.g. Now, I am using tar cvf /dev/rmt/0m /data/* . Each time overwrite
>>> the
>>> tape.
>> Use the "r" operation instead of "c" to append files to an existing
>> archive.
>>
>
>
Please, don't top post,
r and u options are supported when writing to a tape device.
How don't top post ? Somtime, user feedback like this.
OK, I will try again.
"Jean-Louis Liagre"
news:43e95e19$0$1739$636a55ce@news.free.fr...
> moon wrote:
>> I tried before. 'r' just for tar file into file(*.tar) not for tape.
>>
>>
>> "Barry Margolin"
>> news:barmar-EA69E2.21112807022006@comcast.dca.giganews.com.. .
>>> In article
>>> "moon"
>>>
>>>> I want add file into to a tar file(just append file at the end of tar.
>>>> how
>>>> to do this ?
>>>>
>>>> e.g. Now, I am using tar cvf /dev/rmt/0m /data/* . Each time overwrite
>>>> the
>>>> tape.
>>> Use the "r" operation instead of "c" to append files to an existing
>>> archive.
>>>
>>
>>
>
> Please, don't top post,
>
> r and u options are supported when writing to a tape device.
moon wrote:
> How don't top post ? Somtime, user feedback like this.
think again:
http://www.caliburn.nl/topposting.html
"moon"
> I want add file into to a tar file(just append file at the end of tar. how
> to do this ?
>
> e.g. Now, I am using tar cvf /dev/rmt/0m /data/* . Each time overwrite the
> tape.
Some unix systems use different file names to either automatically rewind
the tape drive, or to keep it in the same place when closing.
Be aware that putting a new record on a tape is different from
appending to an existing record.
It's also safer. If one of the records is bad, you can use mt(1) to
skip over that record to read the next.
--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.
It works.
#tar cvf /dev/rmt/2m *.txt
a abc.txt 6 tape blocks
a dump_time.txt 59 tape blocks
#tar rvf /dev/rmt/2m *.txt2
a drwg.txt2 282 tape blocks
a y.txt2 5 tape blocks
#tar rvf /dev/rmt/2m *.txt2
a drwg.txt2 282 tape blocks
a y.txt2 5 tape blocks
#tar tvf /dev/rmt/2m
-rw-r--r-- 0/1 2754 Nov 3 08:54 2005 abc.txt
-rw-r--r-- 1013/10 29882 Jan 16 08:48 2006 dump_time.txt
-rw-r--r-- 1013/10 144176 Oct 16 08:52 2002 drwg.txt2
-rw-r--r-- 1013/10 2264 May 5 14:31 2005 y.txt2
#tar tvf /dev/rmt/2m
-rw-r--r-- 0/1 2754 Nov 3 08:54 2005 abc.txt
-rw-r--r-- 1013/10 29882 Jan 16 08:48 2006 dump_time.txt
-rw-r--r-- 1013/10 144176 Oct 16 08:52 2002 drwg.txt2
-rw-r--r-- 1013/10 2264 May 5 14:31 2005 y.txt2
-rw-r--r-- 1013/10 144176 Oct 16 08:52 2002 drwg.txt2
-rw-r--r-- 1013/10 2264 May 5 14:31 2005 y.txt2
"Jean-Louis Liagre"
news:43e956f1$0$1710$636a55ce@news.free.fr...
> Peter Terpstra wrote:
>> Jean-Louis Liagre zat achter de pc en typte:
>>
>>> have you looked the tar manual page ?
>>
>> Maybe he can find something like:
>>
>> tar uf $FILE $PATH
>>
>> Peter
>>
>
> That's not the faster option.