Re: How to copy data from DDS tape to UNIX station (367 Views)
Reply
Occasional Visitor
Posts: 2
Registered: ‎04-25-2011
Message 1 of 8 (367 Views)

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
Acclaimed Contributor
Posts: 25,605
Registered: ‎03-06-2006
Message 2 of 8 (367 Views)

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?
Honored Contributor
Posts: 4,934
Registered: ‎08-14-2002
Message 3 of 8 (367 Views)

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
Honored Contributor
Posts: 1,575
Registered: ‎02-10-2003
Message 4 of 8 (367 Views)

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"
Occasional Visitor
Posts: 2
Registered: ‎04-25-2011
Message 5 of 8 (367 Views)

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..
Acclaimed Contributor
Posts: 25,605
Registered: ‎03-06-2006
Message 6 of 8 (367 Views)

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).
Honored Contributor
Posts: 4,934
Registered: ‎08-14-2002
Message 7 of 8 (367 Views)

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
Acclaimed Contributor
Posts: 25,605
Registered: ‎03-06-2006
Message 8 of 8 (367 Views)

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.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.