retore file from remote tape

I have 2 Servers, one (A ip:1.1.1.1) has tape drive
one (B ip:2.2.2.2) doesn't have it
I want restore some file which  store ina tape   to server B

What is the command I can do it
tar....?
logoutAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chris_calabreseCommented:
This depends greatly on what program was used to create the tape, but since you mention tar, I'll assume that.

Meanwhile, the key here is to get the bits from machine A to B.  This is usually done in this case useing rsh (aka remsh on some systems) on B to grab the bits off the tape on A like this:
  rsh A dd bs="$size" if="$device" | tar xvf -

where $size is the blocksize of the tape(1k) and $device is the tape device (/dev/rmt/0m).  You'll probably have to setup your ~/.rhosts file on B  to allow this as well.

If your site doesn't run rsh for security reasons, look into Secure SHell (www.ssh.org).

This basic method will work tar, cpio, pax,, dump and other archive programs that can read from stdin (though there's also rrestore so you can avoid some of the setup with dump).

It ususally doesn't work with commercial backups systems, but most of those directly support remote backup/restore.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rickyrCommented:
You can remotely dump (ufsdump).
But you can't restore from a remote tape.
This is true for Solaris ufsdump.
regards
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.