The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-04-2002
Registered User
 

Join Date: Aug 2001
Posts: 60
tar

Hi all,

Appreciate if you could get the correct command to append another file to a tar file:

$ uname -a
UNIX_System_V prepaidp1 4.0 FTX 3.4.0 Continuum Model 428 PA-RISC
$ tar cvf kk.tar icr.lst
a icr.lst 1 tape block
$ tar uvf kk.tar misc.lst
UX:tar: ERROR: Cannot update blocked tapes
$

why this error occured?

thanks
Krishna
Forum Sponsor
  #2 (permalink)  
Old 04-04-2002
PxT's Avatar
PxT PxT is offline
Registered User
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 905
You want to append, not update. Try "tar rvf ..."
  #3 (permalink)  
Old 04-04-2002
Registered User
 

Join Date: Aug 2001
Posts: 60
Quote:
Originally posted by PxT
You want to append, not update. Try "tar rvf ..."
still same error, same command with uvf is working on another server.
  #4 (permalink)  
Old 04-05-2002
Kelam_Magnus's Avatar
Unix does a body good.
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
can't update/append a tape

You are trying to append to a tape. That can't be done. Here is the output direct from the man page.



option -r Add the named file to the end of the archive.

The same blocking factor used to create the archive must be used to append to it. This option cannot be used if the archive is a tape.


You will probably have to create your TAR ball on disk and then later copy it to tape when you have your complete TAR ball.

You probably don't have a problem with the blocking factor, but since you are trying to append a tape that will be a show stopper.

__________________
My brain is your brain
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:22 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0