I want to save the original permissions in the xattr, in order to have a proper backup, but set a custom mode of g+rX to the files.
It seems there is no way to separate the permissions stored in the xattr to the real permissions. Rsync will always store the same in both places. I have tried different combinations of --fake-super --perms --chmod with no success.
I brought up the issue here: https://firstname.lastname@example.org/msg32714.html