How to add files into a tar file

How to add files into a tar file

Post by moon » Thu, 09 Feb 2006 10:59:38



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.

 
 
 

How to add files into a tar file

Post by Jean-Louis Liagr » Thu, 09 Feb 2006 11:10:05



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

 
 
 

How to add files into a tar file

Post by Barry Margoli » Thu, 09 Feb 2006 11:11:28




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

--

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

 
 
 

How to add files into a tar file

Post by Peter Terpstr » Thu, 09 Feb 2006 11:13:10


Jean-Louis Liagre zat achter de pc en typte:

Quote:> have you looked the tar manual page ?

Maybe he can find something like:

tar uf $FILE $PATH

Peter

--

 
 
 

How to add files into a tar file

Post by Jean-Louis Liagr » Thu, 09 Feb 2006 11:27:43



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

How to add files into a tar file

Post by moon » Thu, 09 Feb 2006 11:41:47


I tried before. 'r' just for tar file into file(*.tar) not for 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.

> Use the "r" operation instead of "c" to append files to an existing
> archive.

> --

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

 
 
 

How to add files into a tar file

Post by Jean-Louis Liagr » Thu, 09 Feb 2006 11:58:17



> I tried before. 'r' just for tar file into file(*.tar) not for 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.
>> 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 to add files into a tar file

Post by moon » Thu, 09 Feb 2006 12:13:54


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



>> I tried before. 'r' just for tar file into file(*.tar) not for 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.
>>> 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 to add files into a tar file

Post by Jean-Louis Liagr » Thu, 09 Feb 2006 12:26:05



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

think again:

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

 
 
 

How to add files into a tar file

Post by Bruce Barnet » Thu, 09 Feb 2006 20:59:25



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

 
 
 

How to add files into a tar file

Post by moon » Sat, 11 Feb 2006 14:51:14


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