Everything is written in the title.
I see that you can save the owner: group group, but is it possible to change the owner: group in all files on the remote computer after they are synchronized?
Or can you somehow execute an extra command?
rsync -vzrP --delete ~/Sites/website-name/ root@server.com :/home/website-name/public_html/ | chown website-name:websites-group *
Sorry, my rsync / bash knowledge is quite limited.
source share