Copying files with permissions in tact from Solaris to Redhat

I have two machines...one Solaris and one RedHat linux. I want to copy the files from the Solaris box to the Redhat box preserving the file permissions. How can I accomplish this?
swammie99Asked:
Who is Participating?
 
Maciej SsysadminCommented:
On solaris: tar cf archive.tar /directory/to/transfer
On redhat: tar xf archive.tar
Run this both commands as root.
Make sure, that you have your redhat users with the same uids as on solaris box.
Additionally - I'm not sure, if you are able to transfer ACLs set on these files/directories.
0
 
swammie99Author Commented:
I have tried that but am having problems with tar and long file names. Do you know if there is any way to tar regardless of file name length?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.