Operating System - HP-UX
1748158 Members
4046 Online
108758 Solutions
New Discussion юеВ

Re: How to copy data from DDS tape to UNIX station

 
Sharanabasappa
New Member

How to copy data from DDS tape to UNIX station

Can anybody tell me I want copy some files from DDS tape to UNIX local hard disc?

Thanks in advance
Sharan
7 REPLIES 7
Dennis Handly
Acclaimed Contributor

Re: How to copy data from DDS tape to UNIX station

How was the data written to the tape? ignite, tar, pax, fbackup, dd, etc?
Michael Steele_2
Honored Contributor

Re: How to copy data from DDS tape to UNIX station

I'm afraid I have to 2nd Dennis' request. If you're not sure then post what you see written on the tape label.
Support Fatherhood - Stop Family Law
Peter Nikitka
Honored Contributor

Re: How to copy data from DDS tape to UNIX station

Hi,
if the format of the data on the tape is unknown, try to extract some data and analyze this header:

dd if=/dev/tape of=contenttest bs=5k count=1
file contenttest

The output of the file command will lead to the writing program, if it is a 'usual' candidate.

Read the man page of this program to get options for reading data it created.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Sharanabasappa
New Member

Re: How to copy data from DDS tape to UNIX station

Thanks for reply...It is TAR type data...
and one more is there that is FSBACKUP..
Dennis Handly
Acclaimed Contributor

Re: How to copy data from DDS tape to UNIX station

>It is TAR type data.

The opposite of tar is pax or tar:
tar -xf /dev/tape-device
pax -r -f dev/tape-device

>there that is FSBACKUP.

fsbackup or fbackup(1m)? Use frecover(1M).
Michael Steele_2
Honored Contributor

Re: How to copy data from DDS tape to UNIX station

First, read the 'tar' table of contents or 'frecover' index to preview your restore and verify the contents of the tape.

This will list every file on the tape without actually restoring.

/usr/sbin/frecover -I /tmp/index -vy -f /dev/rmt/0mn

Here the frecover index writes to the file /tmp/index.

tar -tvf /dev/rmt/0m (0m = yes rewind / 0mn = no rewind *)

Here the tar TOC writes to STDOUT

These are previews of the operation.

When ready

tar -xvf /dev/rmt/0m (* for absolute restore *)

frecover -xvf /dev/rmt/0m (* absolute restore *)

Note: Make sure you know if its a relative or absolute resotre. As you'll overwrite anything in an absolute.

Support Fatherhood - Stop Family Law
Dennis Handly
Acclaimed Contributor

Re: How to copy data from DDS tape to UNIX station

>Michael: Make sure you know if it's a relative or absolute restore. As you'll overwrite anything in an absolute.

pax(1) and gnu tar have options to change the paths.