rsync - how to set/keep directory permissions?

Posted by Dylan on Super User See other posts from Super User or by Dylan
Published on 2011-08-22T15:17:13Z Indexed on 2012/11/03 11:06 UTC
Read the original article Hit count: 270

Filed under:
|
|
|

I'm using CwRsync to connect from my Windows development machine to a linux webserver :

rsync -avuz -e ./ssh --exclude=".svn" /cygdrive/c/xampp/htdocs/project123/ [email protected]:/home/user123/public_html

This syncs my development project directory nicely and fast to the server.

But after doing this, all directory properties are reset to the local user 'user123' only, so the website is not available anymore. I need to manually reset those properties.

Why is this happening, and how to prevent it?

PS. coming from a Windows environment I'm having a really hard time understanding rsync. I copied the above command from some examples... just need to get this one small thing working too...

© Super User or respective owner

Related posts about Windows

Related posts about rsync