Virtualization
cancel
Showing results for 
Search instead for 
Did you mean: 

How to copy the data from one hpux server to another hpux server

 
SOLVED
Go to solution
Super Advisor

How to copy the data from one hpux server to another hpux server

Hi All,

I want to copy the data from one hpux server to another hpux server.

We are running rlogin in destination, so how to copy the data using rlogin.

I don't want to over write the data in destination.
25 REPLIES 25
Honored Contributor

Re: How to copy the data from one hpux server to another hpux server

> [...] how to copy the data using rlogin.

How about remsh instead of rlogin?

A Forum search for keywords like, say,
tar pipeline
should find many examples. Adding "remsh"
should find some examples where two systems
are involved.

> I don't want to over write the data in
> destination.

I'd need more information about what you
intend to copy, and what might be
overwritten, before I'd want to discuss any
possibilities.
Outstanding Contributor

Re: How to copy the data from one hpux server to another hpux server

Or you could use rcopy. The question is what kind of access you're going to have to the data. NFS? CIFS?


Pete

Pete
Outstanding Contributor

Re: How to copy the data from one hpux server to another hpux server

You can also mount the other system's file system on the destination system:

mount sysA:/tmp /tmp/sysAtmp

Then cp what you need.


Pete

Pete
Honored Contributor

Re: How to copy the data from one hpux server to another hpux server

Hi,
If you have an very old box, you could also use rexec or ftp with .netrc not very secure but it could do the job.
http://docs.hp.com/en/B2355-90110/ch02s10.html
You could also of course use rcp/remsh and more secure if you could install ssh (scp/sftp)
One more, rsync .
HTH
Acclaimed Contributor

Re: How to copy the data from one hpux server to another hpux server

>how to copy the data using rlogin.

You can use rcp to copy the data, even without rlogin. As to overwriting the file, you would have to make it read only or check first.
Trusted Contributor
Solution

Re: How to copy the data from one hpux server to another hpux server

Hi Senthil, you can use rcp for example:

from source_server
rcp -r /tmp/file.tar root@destination_server:/opt/file.tar

where "/tmp/file.tar" is the file inside the source server and "/opt/file.tar" is the file inside the destination server.

BR.
Ernesto
Respected Contributor

Re: How to copy the data from one hpux server to another hpux server

use rcp command

rcp -rp source:/path destination:/path

and also you can use scp . the syntax is same

but in both the case your data will be overwrite.

if your data is very large than use tar command
All things excellent are as difficult as they are rare
Honored Contributor

Re: How to copy the data from one hpux server to another hpux server

On the remote server make a new directory called anything else. Make sure you have enough space on the mountpoint and/or directory to hold all this data.

rlogin
mkdir /some-mountpoint/MyFileFromOtherServer
exit

Now go back to the primary server and just do as folks above said...

rcp -R /dirpath/data* :/some-mountpoint/MyFileFromOtherServer

Now your data is all over there and didn't overwrite anything, cause it's under a different file system.

You could just as easily tar'd up the data on the primary and untar'd it on the remote to the new location too. Or you could put the data out to tape and then restore the data to the remote sever at a new location.
...so many options to pick from...

Rgrds,
Rita
Super Advisor

Re: How to copy the data from one hpux server to another hpux server

Is rlogin needs to be enabled to work with rcp?