I'm trying to push changes to my server through ssh on windows (cygwin) using rsync. The command I am using is:
rsync -rvz -e ssh /cygdrive/c/myfolder/ email@example.com:/srv/www/prj112/myfolder/
/srv/www/prj112/myfolder/ is owned by rsyncuser. My problem is that eventhough with rsync the sub directories are create as they publish, each directory is assigned default permission of d--------- so rsync fails to copy any files inside it.
How do I fix this?