LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Restoring tape contents (https://www.linuxquestions.org/questions/linux-newbie-8/restoring-tape-contents-837949/)

g_ramesh 10-14-2010 12:04 AM

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?

prayag_pjs 10-14-2010 12:15 AM

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.

gdejonge 10-14-2010 10:31 AM

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

g_ramesh 10-15-2010 04:56 AM

Quote:

Originally Posted by gdejonge (Post 4127294)
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?

g_ramesh 10-18-2010 06:29 AM

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.


All times are GMT -5. The time now is 02:13 AM.