Redhat – Transfer files with extended attributes: Redhat to Redhat

attributesfile-transferredhat

I need to transfer files with extended attributes from my local system (SL 6.5) to a remote server (Centos 5.6). However, both scp and rsync are dropping the attributes, so I'm having to manually setfattr on the server. Any pointers on how to do this properly? Thanks.

Best Answer

AFAIK scp doesn't.

rsync has the -X, --xattrs switch for extended attributes (think SELinux contexts) and the -A, --acls to preserve ACL's, which are what you modify with setfattr.