LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-14-2010, 01:04 AM   #1
g_ramesh
LQ Newbie
 
Registered: Jun 2010
Posts: 29

Rep: Reputation: 0
Restoring tape contents


Hi,
on a Linux pc I want to restore the contents of the DLT tape to /mnt directory,how to do it?

If I just want to see the contents of the files, is it possible to read the contents directly from tape without restoring to hard disk?
 
Old 10-14-2010, 01:15 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
To list the tape contents, you can do:

Code:
cpio -itv -I /dev/st0
To list the tape contents, you can do:

Code:
cpio -itv -I /dev/st0
To restore the tape contents, you can do:

Code:
cpio -icvmuld -I /dev/st0
Check the appropriate manual pages for the mt and cpio commands for more details.
 
Old 10-14-2010, 11:31 AM   #3
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
Maybe the OP should first tell us what tool was used to write the files to the tape. That way it will be easier to determine what the right commands are to restore or list the tape entries. Although cpio is an possibillity, there also tar or amanda, backula, etc...

So g_ramesh please tell us what you used to write the data to the tape.

_____________
Gerrard
 
Old 10-15-2010, 05:56 AM   #4
g_ramesh
LQ Newbie
 
Registered: Jun 2010
Posts: 29

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by gdejonge View Post
Maybe the OP should first tell us what tool was used to write the files to the tape. That way it will be easier to determine what the right commands are to restore or list the tape entries. Although cpio is an possibillity, there also tar or amanda, backula, etc...

So g_ramesh please tell us what you used to write the data to the tape.

_____________
Gerrard
Thanks for your reply. Sorry I do not know how the files were written to tape. How ever with tar -tvf /dev/st0 I am able to view file listing.
Is it possible to view contents of files with out restoring? If not to restore to a particular directory what command should be used?

Last edited by g_ramesh; 10-15-2010 at 05:58 AM.
 
Old 10-18-2010, 07:29 AM   #5
g_ramesh
LQ Newbie
 
Registered: Jun 2010
Posts: 29

Original Poster
Rep: Reputation: 0
Hi all

I found out that it is not possible to read the contents of the files on tape without restoring on to Hard Disk.
Also to restore to a particular dir, go to that dir and issue command " tar -xvf /dev/st0 "

Thanks.
 
  


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
[SOLVED] Failure restoring a cpio backup from tape dguy Linux - Server 10 03-29-2009 10:12 AM
problem while restoring data from tape drive using mt shellarchive Red Hat 1 07-09-2008 11:54 AM
Restoring data from tape backups enygma Linux - General 8 11-11-2004 02:29 PM
Restoring contents of /bin existo Slackware 2 02-18-2004 06:53 PM
Help restoring from tape and tar...... TheDirtyPenguin Linux - Software 1 02-17-2004 08:42 AM


All times are GMT -5. The time now is 04:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration