LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-29-2005, 09:21 PM   #1
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
untarring archives that span multiple tapes?


So I've dusted off an old DLT drive to recover some old data. I have three archives spanned across nine tapes. If I try to tar tvf the tape to see what's on it, I can only see the first tape of each archive. The second and third don't give me anything back (well, actually, they give back a directory checksum error).

Is there a special command I have to give to tar to tell it there's another tape coming, or that if I'm not tape 2 that it's part of a larger archive?

This is on a SGI, btw, (running IRIX6.5 I believe). Is it possible that this version of tar doesn't support multiple tapes?

the command I'm using is pretty simple:

tar tvf /dev/tape

Thanks
 
Old 11-29-2005, 09:33 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Check the man page for tar. There are three addidional options you can specify on the command line: -M (or --multi-volume), -L (or --tape-length=<N*1024 bytes>), and --new-volume-script=<filename>, where filename is a script which tells tar what to do when it reaches the end of a tape; namely, execute a ctrl-Z (to suspend the operation) and unmount so that you can change tape, then remount manually, and finally command fg to bring it back to foreground and resume.

Can't help you with the script though. Never figured it out.
 
Old 11-29-2005, 09:41 PM   #3
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
Quote:
Originally posted by bigrigdriver
Check the man page for tar. There are three addidional options you can specify on the command line: -M (or --multi-volume), -L (or --tape-length=<N*1024 bytes>), and --new-volume-script=<filename>, where filename is a script which tells tar what to do when it reaches the end of a tape; namely, execute a ctrl-Z (to suspend the operation) and unmount so that you can change tape, then remount manually, and finally command fg to bring it back to foreground and resume.

Can't help you with the script though. Never figured it out.
hmm.. the SGI's tar doesn't have those options. It also doesn't have a compiler, so I can't make a new tar... hmmm...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"DUMP", cron, and multiple tapes ghight Linux - Software 2 03-06-2007 03:59 AM
Problem with SPAN port abefroman Linux - Security 0 05-14-2005 05:35 PM
Untarring multiple files? chup Linux - General 7 10-16-2003 09:01 PM
Span Backup Tapes ghight Linux - Software 1 07-22-2003 06:10 PM
DUMP Backup to multiple tapes ghight Linux - Software 0 07-02-2003 08:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration