I‘ve tried to copy files from my Mac to a Debian server with rsync. Therefore I installed the current version via Homebrew.
Now the sync is working but my files are owned on the destination by root (the ssh-user) although I use the
—usermap=*:www-data Options. It seems that rsync is ignoring them.
The obvious problem that I can see is that the options you’ve provided are not correct.
--chown your question has
-chown, containing a single Unicode emdash instead of the expected two standard hyphens.
The same is true of
--usermap where your question instead shows
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.