1838240 Members
3330 Online
110125 Solutions
New Discussion

Copying a depot tape.

 
Ron Peters_3
Occasional Contributor

Copying a depot tape.

Hello,

I have a software depot tape that I'd like to copy to another tape. Is there a simple way of doing this?

Thanks in advance.
Ron.
4 REPLIES 4
Leif Halvarsson_2
Honored Contributor

Re: Copying a depot tape.

Hi
If you have two tape drives you can use the "dd" command "dd if=/dev/rmt/0m of=/dev/rmt/1m" .

Have a look at the man page for dd (man dd).
Anu Mathew
Valued Contributor

Re: Copying a depot tape.

Hi Ron,

How about dumping the entire tape to another one?

dd if=/dev/rmt/0m of=/bigfile

Then insert a new blank tape and

dd if=/bigile of=/dev/rmt/0m

Choose device names according to your system layout.

HTH,

~AM
Wodisch
Honored Contributor

Re: Copying a depot tape.

Hi Ron,

using "dd" as shown by the first two replies is one (and simple) solution, but you do not know wether the "new" tape really contains a valid depot...
If you do have the diskspace for this, you can "swcopy" everything from the "original" tape to a new directory (read: disk depot) and from there to the "new" tape using "swpackage".
Be careful to use all the needed "-x" options, though...
Oh, and that way you do have to opportunity to add something to that (disk) depot, like new patches!

HTH,
Wodisch
Joseph A Benaiah_1
Regular Advisor

Re: Copying a depot tape.

Ron,

You can swpackage to copy a depot to tape as follows:

swpackage -s /var/adm/sw/depot -d /dev/rmt/0m -x target_type=tape \*

Cheers,

Joseph.