Operating System - HP-UX
1833920 Members
4319 Online
110063 Solutions
New Discussion

Re: fastest copy from one to another server

 
SOLVED
Go to solution
Ignacio Rodríguez Arrós
Frequent Advisor

fastest copy from one to another server

I have a new rp 5420 with hpux 11 and i want to copy some directories with their subdir from one d280 with hpux 10.20. Ican,t do it with tapes because the d280 has a dlt, and the rp has an ultrium unit, so i´m doing it with a client ftp in a pc, but it is too slow. ¿what command can i use to copy directly from one server to the other? Both servers are in the same
10 REPLIES 10
Mister_Z
Frequent Advisor

Re: fastest copy from one to another server

Hi Ignacio,

In the hpux 10.20 server, cd to the directory whose contents you wan to copy:

#tar cvpf - . | remsh <11.0 IP address> -l root "cd ;tar vxpf -"

Hope this helps.
I work for HP
Robert-Jan Goossens
Honored Contributor

Re: fastest copy from one to another server

Hi,

# cd /source_dir
# find . | cpio -o | remsh server " cd /target_dir ; cpio -idum "


Regards,
Robert-Jan

Michael Schulte zur Sur
Honored Contributor

Re: fastest copy from one to another server

Hi,

one suggestion more:

fbackup -i /src -f - | remsh remote -l root(cd /dst; frecover -Xrf -)

greetings,

Michael
Michael Schulte zur Sur
Honored Contributor

Re: fastest copy from one to another server

Oops,

something missing:

fbackup -i /src -f - | remsh remote -l root "(cd /dst; frecover -Xrf -)"

greetings,

Michael
Geoff Wild
Honored Contributor
Solution

Re: fastest copy from one to another server

The fastest way I found was to tar/gzip them up, then rcp them to the new server.

If on the same subnet, then mount the remote dir via NFS and use vxdump:

vxdump -0 -f - -s 1000000 -b 16 /some/dir | (cd /mnt/some/dir/on/new/server ; vxrestore rf -)


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Michael Schulte zur Sur
Honored Contributor

Re: fastest copy from one to another server

Hi,

an alternative would be:

rcp -pr /src remote:/dst/

thats also quite fast.

Michael
Ignacio Rodríguez Arrós
Frequent Advisor

Re: fastest copy from one to another server

If i use rcp what may i do in the remoste host to permit to write in it from the local server (the remote server denied access from local if i don´t log like a remote use
Michael Schulte zur Sur
Honored Contributor

Re: fastest copy from one to another server

Hi,

you would have to create a .rhosts file with access 600 on the remote host and add the local host and user, you want to allow access. Then use rcp -pr /src userremote@remote:/dst/
The userremote, in case the local and remote user are not the same.

greetings,

Michael
Michael Schulte zur Sur
Honored Contributor

Re: fastest copy from one to another server

Hi,

I forgot to say, that .rhosts must be in the home directory of the remote host.
Example of a line in .rhosts:
d280-hostname user-on-d280

greetings,

Michael
kenny chia
Regular Advisor

Re: fastest copy from one to another server

Hi
Are you overwriting the destination directory with almost similiar data from the source? Check out Remote Sync for HP (rsync)

http://rsync.samba.org

Its the best for daily backup
All Your Bases Are Belong To Us!