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
What OS are you using? HP-UX or Linux?
How are the machines connected? NFS?
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
>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.
via tar and ssh
cd source_dir; tar -cf - . | ssh user@targethost "cd target_dir; tar -xvf -"