From what I understood he was trying to mirror and the permissions were correctly set on the source but somehow changed permissions on the destination. It is very odd - which is why I asked for more data. On Fri, May 7, 2010 at 12:47 AM, kitepilot@kitepilot.com wrote: > The design of rsync pursues to mirror "what you have" to "what you want to > have", and that includes permissions (save some explicit "override-able" > exceptions like setuid). > Even though there may be options to override and/or expand that behavior, > the "correct and elegant way" (given the underline design and basic goals of > rsync) would be to set the appropriate permissions of the files before > transfer. > In other words: > as part or your "rsync" script, set the permissions of the files to what you > want to see in the final destination. > YMMV... > ET > > > joe@actionline.com writes: >> >> When using rsync to upload files to my web host, >> it is changing directory permissions so things don't work >> until I ssh in and change the directory permission back >> to 755. >> Why is it doing this and what do I need to do to keep >> the permissions as they are set on my local system at 755. >> Here's the syntax that I used first and second. I added the 'p' >> thinking that would preserve permissions, but it did not. >> rsync -avH --progress /home/joe/mydata/av7/website/ >> vsiqcom@box582.bluehost.com:www/av7/website/ >> rsync -avHp --progress /home/joe/mydata/av7/website/ >> vsiqcom@box582.bluehost.com:www/av7/website/ >> >> --------------------------------------------------- >> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us >> To subscribe, unsubscribe, or to change your mail settings: >> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > > --------------------------------------------------- > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > To subscribe, unsubscribe, or to change your mail settings: > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss