LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-20-2018, 07:54 AM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Rep: Reputation: 39
Problem extracting tar files from HP-UX tar tapes


Hello --

I am going through our tapes to extract data from several years ago. At that time we used a mini-computer running the HP-UX 11.00 operating system. Archives were done periodically to DLT and SDLT tapes.

The system in question has since been decommissioned, and I have been tasked with extracting the data from the tapes. The system that I am using to extract the data is an Ubuntu Linux 14.04 LTS server running as a virtual machine. To determine what is on a given tape, the following command is run:

Quote:
tar -tvf /dev/st2 .
The output that is shown on screen is the following:

Quote:
drwxrwxrwx OWNER:GROUP <date> <time> ./
As far as I know, gnu tar was used in these backups, but it is also possible the HP-UX specific tar utility was used for these operations.

Is there a specific command argument or option that I can use to successfully extract the data? If not, what are my options? Thanks.
 
Old 09-20-2018, 08:52 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by kaplan71 View Post
Hello --
I am going through our tapes to extract data from several years ago. At that time we used a mini-computer running the HP-UX 11.00 operating system. Archives were done periodically to DLT and SDLT tapes.

The system in question has since been decommissioned, and I have been tasked with extracting the data from the tapes. The system that I am using to extract the data is an Ubuntu Linux 14.04 LTS server running as a virtual machine. To determine what is on a given tape, the following command is run:
Code:
tar -tvf /dev/st2 .
The output that is shown on screen is the following:
Code:
drwxrwxrwx OWNER:GROUP <date> <time> ./
As far as I know, gnu tar was used in these backups, but it is also possible the HP-UX specific tar utility was used for these operations. Is there a specific command argument or option that I can use to successfully extract the data? If not, what are my options? Thanks.
Without knowing what was used, there's not much to suggest. You can try tar first, but CPIO could have also been used on HP/UX. Without knowing, it's almost impossible to guess, you're just going to have to try the different utilities, or ask whoever created the tape what they used. Did you try to redirect the tape command to a file to see what you got?
 
1 members found this post helpful.
Old 09-20-2018, 08:58 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Recommend you make a tar file, not a compressed one, just a tar file, and look at it.

Not too complicated, it is pure concatenation with a minor amount of added extra information.

Perhaps whatever lay on these tapes is merely that. I would believe that tar should also just be capable of extracting the information.

Another test would be to see if you can see files on that device and copy them over somewhere, or use the dd command to get an image of what's on the tape drive and then try to extract the data from the image file.
 
Old 09-20-2018, 09:13 AM   #4
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
Hello --

Thank-you both for responding to my posting. I went with the suggestion of outputting the tar -tvf /dev/st2 command to a file, and the contents of the file listed the data.
Following that, I ran the command listed below:

Quote:
tar -xvf /dev/st2
The data was extracted to the default directory.
 
  


Reply



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
tar is not extracting all files wowy Linux - Newbie 1 03-13-2015 04:49 AM
[SOLVED] extracting group of files from a tar.bz that was created with the following tar - lleb Linux - Newbie 1 06-06-2012 03:06 PM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 11:02 AM
geting problem in extracting tar files p_garg Linux - Enterprise 1 09-29-2005 02:53 PM
hey geting problem in extracting tar files in version 4 p_garg Linux - Networking 1 09-29-2005 02:48 PM

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

All times are GMT -5. The time now is 09:24 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