LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-20-2003, 09:57 PM   #1
Cichlid
Member
 
Registered: Jan 2002
Location: Montreal
Distribution: Ubuntu 8.10
Posts: 178

Rep: Reputation: 30
Extracting multivolume tar


Hi,

So, I'm running SuSE 8.0. I had used the Yast2 Backup utility. Now my system has been hosed and I would like to "restore" the system. Three tar files were made from the backup. I have not found a Yast2 utility that will restore the Yast2 backups, therefore I've been trying to extract the files manually. tar -xvfM (filename)will ask me for Volume 2. But I can 't seem to do that? I've put all three tar files in a directory btu I don't know how to "point" to volume 2 then 3?

Thanks for your help

Erik
 
Old 12-21-2003, 01:55 AM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
Looking at the man page, and because I've never done this have you tried:

tar xvfM yast2backup.1.tar yast2backup2.tar yast2backup3.tar

where yast2backup is obviously the name of the tar file...anyway, all on one line?
 
Old 12-21-2003, 02:09 AM   #3
Tarts
Member
 
Registered: Feb 2003
Distribution: Slackware 9.1 (exclusively) ;)
Posts: 344

Rep: Reputation: 30
I could never get tar to extract multible files, I was trying:

Code:
tar -xvf *
But found a way that works, in:

Code:
find /dir -name *.tar -exec tar -xvf {} \;
Tarts
 
Old 12-21-2003, 02:54 AM   #4
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
The -M option is something about mult-volumes, so i figured maybe with this option it allows you to put multiple .tar files on the tar line.

Yeah, tar xvf *.tar has never worked, I usually use something like

for i in `ls *.tar`;do tar xvf $i;done

find, of course, works as well.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 12:02 PM
After extracting a tar...is tar useless? glenn69 Linux - Newbie 6 04-23-2004 10:04 PM
extracting tar.bz2.gz files crank Linux - Newbie 5 04-19-2004 12:33 AM
Question on extracting a tar.gz VampiricuS Linux - Newbie 4 10-22-2003 10:47 AM
extracting -filename.tar.gz- zokter Linux - Newbie 3 06-29-2003 07:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:44 AM.

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