Re: How to copy data from DDS tape to UNIX station (209 Views)
Reply
Occasional Visitor
Sharanabasappa
Posts: 2
Registered: ‎04-25-2011
Message 1 of 8 (209 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
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,744
Registered: ‎03-06-2006
Message 2 of 8 (209 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?
Please use plain text.
Honored Contributor
Michael Steele_2
Posts: 4,934
Registered: ‎08-14-2002
Message 3 of 8 (209 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
Please use plain text.
Honored Contributor
Peter Nikitka
Posts: 1,575
Registered: ‎02-10-2003
Message 4 of 8 (209 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"
Please use plain text.
Occasional Visitor
Sharanabasappa
Posts: 2
Registered: ‎04-25-2011
Message 5 of 8 (209 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..
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,744
Registered: ‎03-06-2006
Message 6 of 8 (209 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).
Please use plain text.
Honored Contributor
Michael Steele_2
Posts: 4,934
Registered: ‎08-14-2002
Message 7 of 8 (209 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
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,744
Registered: ‎03-06-2006
Message 8 of 8 (209 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.
Please use plain text.
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