Re: Why does rsync change directory permissions

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: kitepilot@kitepilot.com
Date:  
To: Main PLUG discussion list
Subject: Re: Why does rsync change directory permissions
Go figure...
I understood it completely backwards from the same text, and people wonder
why there are wars... :)
ET




Bryan O'Neal writes:

> 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,
> <> 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
>>
>>
>> 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/
>>> :www/av7/website/
>>> rsync -avHp --progress /home/joe/mydata/av7/website/
>>> :www/av7/website/
>>>
>>> ---------------------------------------------------
>>> PLUG-discuss mailing list -
>>> To subscribe, unsubscribe, or to change your mail settings:
>>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list -
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss