rsync: --groupmap=*:www-data: unknown option
I am trying to add an option to my rsync line to set the group of the files transfered to have www-data as their group.
When i add the option i get the above message.
Here is the rsync line i am trying:
rsync -avz --delete --chmod=ug=rwX,o=rX --groupmap=*:www-data ' -e "ssh -p 48" /cygdrive/e/test firstname.lastname@example.org:/var/vhost/locals/test
Without the -groupmap flag the files are landing as john:john instead of the desired jonh:www-data.
This is from windows to ubuntu.
Does anyone have any ideas?
it is the same when i try to use --chown:
rsync: --chown=john:www-data: unknown option