rsync
rsync copied to clipboard
xattrs and link-dest incompatible
On macOS rsync version 3.4.1 with APFS file system:
using rsync -av --xattrs --link-dest does not create hardlinks, the inode number is different (the file is not transferred again, but copied at the end)
removing the --xattrs option does link the new file to the old one (same inode number)
I believe it has something to do that macos changes the xattrs with every access of the file (including the rsync reading)