I need to transfer directories/files between 2 Unix servers, with same folder permission.
I tried scp, but it retains the the permissions, but changes the owner of the directory/file to the user used to copy them to the destination. I don't want that to happen.
If possible without any other additional installation of tools.
Actually I want to move a directory as a whole from one server to another server, provided each of the files/sub-directories under that has the same permission and owner as that of the source.
Make sure you hav the same set of users owning the files in the source folders present in the destinations else the owner:group would be changed to uid and gid of the source.
for using rsync, should I need to install the tool?
I'm working on SunOS 5.10 Generic_144488-10 sun4v sparc SUNW,Sun-Fire-T200
Could you please let me know the procedure to install or configure it, if needed?