When I copy using rcp -rp from one HP_UX server to another, the following happens:
- the timestamp on directories and files is maintained, which is good
- the permissions of files seems to remain in some cases.
- the ownership data (root, sybase, etc) is LOST and the user making the operation becomes the new owner on the destination server.
when I copy using tar cvf - and then untar xvf-, the following happens:
- the timestamp on directories (not files) is LOST, and the time of copy is written
- the permissions of files seems to remain in some cases.
- the ownership data seems to remain in some cases.
What is the definite way of copying directories/files from one server to another under HP_UX to maintain owner, permissions, and timestamp (of both files and directories)?
(something like rcp -rp server:/opt/admin/bin/* for example)
Thanks,
Kay
Start Free Trial