How to add files into a tar file

How to add files into a tar file

am 08.02.2006 02:59:38 von 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.

Re: How to add files into a tar file

am 08.02.2006 03:10:05 von Jean-Louis Liagre

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 ?

Re: How to add files into a tar file

am 08.02.2006 03:11:28 von Barry Margolin

In article ,
"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.

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 ***

Re: How to add files into a tar file

am 08.02.2006 03:13:10 von Peter Terpstra

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

Re: How to add files into a tar file

am 08.02.2006 03:27:43 von Jean-Louis Liagre

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.

Re: How to add files into a tar file

am 08.02.2006 03:41:47 von Moon

I tried before. 'r' just for tar file into file(*.tar) not for tape.


"Barry Margolin" wrote in message
news:barmar-EA69E2.21112807022006@comcast.dca.giganews.com.. .
> In article ,
> "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.
>
> 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 ***

Re: How to add files into a tar file

am 08.02.2006 03:58:17 von Jean-Louis Liagre

moon wrote:
> I tried before. 'r' just for tar file into file(*.tar) not for tape.
>
>
> "Barry Margolin" wrote in message
> news:barmar-EA69E2.21112807022006@comcast.dca.giganews.com.. .
>> In article ,
>> "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.
>> 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.

Re: How to add files into a tar file

am 08.02.2006 04:13:54 von Moon

How don't top post ? Somtime, user feedback like this.
OK, I will try again.

"Jean-Louis Liagre" wrote in message
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" wrote in message
>> news:barmar-EA69E2.21112807022006@comcast.dca.giganews.com.. .
>>> In article ,
>>> "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.
>>> 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.

Re: How to add files into a tar file

am 08.02.2006 04:26:05 von Jean-Louis Liagre

moon wrote:
> How don't top post ? Somtime, user feedback like this.

think again:

http://www.caliburn.nl/topposting.html

Re: How to add files into a tar file

am 08.02.2006 12:59:25 von Bruce Barnett

"moon" writes:

> 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.

Re: How to add files into a tar file

am 10.02.2006 06:51:14 von Moon

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" wrote in message
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.