Solved

Accessing Tape Drive on Linux / Restoring Unix Tar Backup

Posted on 2002-06-20
12
265 Views
Last Modified: 2010-04-20
Hello,

I have never used Unix or Linux before. I have been a Dos and Windows cronie for the last 14 years. So, bear with me while I go through pains learning Linux.

I was given a DLT 40/80 backup tape that contains a lot of MS Office documents. The tapes were backed up with Unix Tar. I would like to know how to restore the tapes using Linux. Is there an easy answer to this and how do I do it?

I have never used tar before but I have been told it is like PKZIP from the command line. Would I restore the TAR image from the backup tape and then unzip it or would restoring it from tape (using default utilities) unzip or untar it for me?

I am running Linux version 7.3 and I just ran the update to automatically update my system.

Thanks in advance,

John
0
Comment
Question by:jhieb
  • 4
  • 4
  • 4
12 Comments
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
tar is an archiver, only GNU's tar (gtar, the default on Linux) also can compress with gzip.

To check what's on your tape, you need to know the device of your tape drive, which is /dev/mt0 or /dev/st0, then do following to list the tape:

   tar tvf /dev/st0

The tape might be written with more than one label, means that sevaral tar commands wrote on the tape, one behind each other. Then you need to check like this:

   tar tvf /dev/nst0
   tar tvf /dev/nst0
   tar tvf /dev/nst0
   ...

To get all files back use:

   tar xf /dev/st0

to get a specific file back, use:

   tar xf /dev/st0 path/to/file/you/want
0
 
LVL 1

Author Comment

by:jhieb
Comment Utility
This stuff did not work for me. How do I get my points back?
0
 
LVL 1

Author Comment

by:jhieb
Comment Utility
I am making a request to have this question deleted in the community forum.
0
 
LVL 6

Expert Comment

by:Mindphaser
Comment Utility
My personal feeling here is that you were given a very valid answer (I am a UNIX person myself). You never gave ahoffmann any feedback what didn't work so he would be able to help you any more.

** Mindphaser - Community Support Moderator **
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
still listening ..
0
 
LVL 1

Author Comment

by:jhieb
Comment Utility
This did not work for me and I sent the tape to a vendor instead. As I noted, I am not a Unix person. These items may have made sense to someone who is used to Unix and a Unix person could probably have adjusted the response to make it work. But for me, it did not work and I paid someone else to do the work for me. Thanks anyway.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 6

Accepted Solution

by:
Mindphaser earned 0 total points
Comment Utility
OK, that's feedback ... I'd like to keep ahofmann's comment around. Therefor I will refund the the points and move the question to PAQ.

** Mindphaser - Community Support Moderator **
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
agreed (even if the paid person used my comment to make it work)
0
 
LVL 6

Expert Comment

by:Mindphaser
Comment Utility
I hope they paid somebody who'd know without EE's help :-)
0
 
LVL 1

Author Comment

by:jhieb
Comment Utility
Ha! Nice try. I paid someone who does this for a living. Thanks for your help, anyway.
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
aha, a slave, please hand over ;-)
0
 
LVL 6

Expert Comment

by:Mindphaser
Comment Utility
I hope the guy's name who does it isn't "A. Hoffmann" ...
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now