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
2014/06/02
3:38 UTC
Read the original article
Hit count: 191
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