Changing only file permissions

Hendrik Visage hvjunk at gmail.com
Wed Apr 22 01:57:43 MDT 2015


On Wed, Apr 22, 2015 at 9:15 AM, Kevin Korb <kmk at sanitarium.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Normally, I would say that --checksum is actually slower than just
> letting rsync re-copy everything

Depends on the network capacity and costs associated with that bandwidth :(

>and therefore is almost always the
> wrong thing to do.

Nope, not when you are bandwidth and budget constraint ;)

> However, in this case, you really don't want to
> overwrite the running OS even with files that are essentially the
> same.  So, if the system is running from that storage then --checksum
> might actually be useful.
>
> On 04/22/2015 01:59 AM, Hendrik Visage wrote:
>> On Wed, Apr 22, 2015 at 1:03 AM, James Moe <jimoe at sohnen-moe.com>
>> wrote: Hello, opensuse 13.2 linux v3.16.7-7-desktop x86_64 rsync
>> v3.1.1
>>
>> I used rsync to copy /usr/ to another volume with these options:
>> --recursive --one-file-system --links --stats --itemize-changes
>> --quiet --delete --times After I had modified the system to use the
>> new /usr volume, I realized I should have added: --perms --owner
>> --group --executability
>>
>> So the target volume has everything set as "root root", and useful
>> bits like the SetUID mode are missing.
>>
>> Is there a way to use rsync to restore only the
>> permissions/owner/user and mode flags on the target volume from
>> the source volume?
>>
>>> *If* their sizes and times match, then I believe rsync does only
>>> the permissions/etc. changes with the -a option. However, I got
>>> into the tendency when doing these type of things, to use the
>>> -c/--checksum option, that way rsync makes sure the files haven't
>>> changed and will copy/update/etc.
>>
>>
>>> -- Please use reply-all for most replies to avoid omitting the
>>> mailing list. To unsubscribe or change options:
>>> https://lists.samba.org/mailman/listinfo/rsync Before posting,
>>> read: http://www.catb.org/~esr/faqs/smart-questions.html
>
> - --
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
>         Kevin Korb                      Phone:    (407) 252-6853
>         Systems Administrator           Internet:
>         FutureQuest, Inc.               Kevin at FutureQuest.net  (work)
>         Orlando, Florida                kmk at sanitarium.net (personal)
>         Web page:                       http://www.sanitarium.net/
>         PGP public key available on web site.
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iEYEARECAAYFAlU3Sn0ACgkQVKC1jlbQAQdzWACgqfSbexxajCMHwW9Uxu5KjWLS
> 8BAAoJmil6glPCitr1NbUHVwspjtOxjN
> =H/dh
> -----END PGP SIGNATURE-----
> --
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


More information about the rsync mailing list