cancel
Showing results for 
Search instead for 
Did you mean: 

Copy between 2 machine

artaboga
Occasional Advisor

Copy between 2 machine

Hi,

 

Does anyone know how to copy all files between 2 machine and preserver the ownership and the symbolic link ??

 

any help would be appreciated

 

Thanks,

 

Artaboga

 

 

P.S. This thread has been moved from Legacy Feedback Forums >
 Your Questions Regarding ITRC Forums (Legacy ITRC forum) >  to HP-UX > sysadmin. -HP forum moderator

6 REPLIES
Dennis Handly
Acclaimed Contributor

Re: Copy between two machines?

What OS are you using?  HP-UX or Linux?

How are the machines connected?  NFS?

artaboga
Occasional Advisor

Re: Copy between two machines?

Hi Dennis,

 

It's Hp UX and i need the copy will preserve the symbolic link, ownership and permissions

does this could be achieved by using NFS ??

the machine are connected by lan

 

Thanks,

 

Hendra

Dennis Handly
Acclaimed Contributor

Re: Copy between two machines?

>It's HP-UX

 

(I asked the moderators to move it to the correct board.)

 

>I need the copy will preserve the symbolic link, ownership and permissions does this could be achieved by using NFS?

 

Using the correct options to cp -p, with preserve ownership and permissions.  And with -r preserve symlink.

(Same with scp/rcp.)

Of course you could use pax/tar or fbackup/frecover.

 

Gordon Crone
Frequent Advisor

Re: Copy between two machines?

via tar and ssh

 

cd source_dir; tar -cf - . | ssh user@targethost "cd target_dir; tar -xvf -"

P Arumugavel
Respected Contributor

Re: Copy between two machines?

use rsync...
P Arumugavel
Respected Contributor

Re: Copy between two machines?