I am attempting to rsync from a network mounted volume to my Desktop. However some but not alll of the files are not copying because of an rsync error. I am using rsync 3.1.1 from Brew. I'm using this command:
rsync -aXv /Volumes/Scotts\ Stuff/Backgrounds ~/Desktop/Temp
However, I receive this error for some of the files:
get_xattr_data: lgetxattr(""/Volumes/Scotts Stuff/Backgrounds/chalkboard-black.jpg"","com.apple.ResourceFork",88644) returned 65536
Any ideas? Some files with extended attributes copy just fine but some receive the error. If I leave off the "X" option then rsync works but of course the extended attributes are not preserved.
Best Answer
The problem I reproduced on many versions of MacOS X (Mountain Lion, Mavericks, Yosemite, El Capitan) which are using a much too old version of
rsync
(2.6.9) and with more recent versions built with Macports (3.x) is solved with version 3.1.2.Standard MacOS X rsync 2.6.9 → failure
Built rsync 3.1.2 → success
2 key details to note:
-E
option changed to-AX
(ACL & extended attributes)--fake-super
to be able to copy file inside read only directoriesHow to use it on different Macs
If you want to make an rsync on a remote Mac, you will have to explictly call the built
rsync
on the remote Mac with the--rsync-command
option: