Re: Doubt on usage of rsync for chown of existing folders

2015-09-13 Thread Wayne Davison
On Thu, Sep 10, 2015 at 6:58 PM, Celso de Sousa Junior <
celso_de_sousa_jun...@yahoo.com.br> wrote:

> I would like to have changes (chown) in the destination.
>

I suggest using the --super option so that you ensure that the receiving
side attempts to chown the files, and you'll get warned if it doesn't have
the perms to do so (e.g. if the receiving rsync is not really running as
root).

However, some files did not changed size or rights. All files should have
> new owner.


You might be looking in the wrong dir,  e.g. if you did an rsync -a dir
/dest/dir and are looking in the /dest/dir hierarchy instead of the
/dest/dir/dir hierarchy.

..wayne..
-- 
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

Re: Doubt on usage of rsync for chown of existing folders

2015-09-10 Thread Celso de Sousa Junior
Hi
I would like to have changes (chown) in the destination. 
However, some files did not changed size or rights. All files should have new 
owner. 

Thanks, 
Regards,CJ
 


 Em Quinta-feira, 10 de Setembro de 2015 20:26, Kevin Korb 
 escreveu:
   

 -BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rsync does not change anything on the source.  Only on the target.

Only root can change the ownership of a file.

On 09/10/2015 07:16 PM, Celso de Sousa Junior wrote:
> Hi Kevin,
> 
> Thank you very much. I changed my user in the remote machine (su).
> 
> Then, by trying again with rsync but with no modification in the
> source folder, I see that file ownership continues the same.
> 
> Would be possible for rsync to change the ownership in this case (I
> am not root) ?
> 
> Thanks, Regards, CJ
> 
> 
> 
> 
> Em Quinta-feira, 10 de Setembro de 2015 20:01, Kevin Korb 
>  escreveu:
> 
> 
> The syntax looks correct.  However, note that only root can chown. 
> You must be running rsync on the target end as root for --chown or 
> --owner to work.  If you aren't using root access then just run
> the target rsync as the user you want the files to be owned by and
> it will have no choice.
> 
> On 09/10/2015 06:42 PM, Celso de Sousa Junior wrote:
>> Hi,
> 
>> Please, I am using rsync to synchronize local machine with
>> remote machine.
> 
>> I already have some files copied. Now I have to change the 
>> ownership from existing files in the destination folder.
> 
>> I tried the following options but it did not worked. Can you
>> please help me with other options or alternatives ?
> 
>> --perms --chown=user:group --chmod=777 --exclude-from=$EXCLUDES 
>> -avzi --rsync-path="/usr/local/bin/rsync" -e ssh
> 
>> Thanks, Regards, CJ
> 
> 
> 
> 
> -- 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.        ke...@futurequest.net  (work)
    Orlando, Florida        k...@sanitarium.net (personal)
    Web page:            http://www.sanitarium.net/
    PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
- -*~
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iEYEARECAAYFAlXyEZ4ACgkQVKC1jlbQAQdIWACgz9Cn9Nh6Ar78E3fpf4hcVbNE
aeoAoLe54DEQcpMe1S2T+DyY7XvBJRTt
=5BHQ
-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

Re: Doubt on usage of rsync for chown of existing folders

2015-09-10 Thread Celso de Sousa Junior
Hi Kevin, 

Thank you very much. I changed my user in the remote machine (su). 

Then, by trying again with rsync but with no modification in the source folder, 
I see that file ownership continues the same.

Would be possible for rsync to change the ownership in this case (I am not 
root) ?
Thanks, 
Regards,CJ

 


 Em Quinta-feira, 10 de Setembro de 2015 20:01, Kevin Korb 
 escreveu:
   

 -BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The syntax looks correct.  However, note that only root can chown.
You must be running rsync on the target end as root for --chown or
- --owner to work.  If you aren't using root access then just run the
target rsync as the user you want the files to be owned by and it will
have no choice.

On 09/10/2015 06:42 PM, Celso de Sousa Junior wrote:
> Hi,
> 
> Please, I am using rsync to synchronize local machine with remote
> machine.
> 
> I already have some files copied. Now I have to change the
> ownership from existing files in the destination folder.
> 
> I tried the following options but it did not worked. Can you please
> help me with other options or alternatives ?
> 
> --perms --chown=user:group --chmod=777 --exclude-from=$EXCLUDES
> -avzi --rsync-path="/usr/local/bin/rsync" -e ssh
> 
> Thanks, Regards, CJ
> 
> 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
- -*~
    Kevin Korb            Phone:    (407) 252-6853
    Systems Administrator        Internet:
    FutureQuest, Inc.        ke...@futurequest.net  (work)
    Orlando, Florida        k...@sanitarium.net (personal)
    Web page:            http://www.sanitarium.net/
    PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
- -*~
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iEYEARECAAYFAlXyC+UACgkQVKC1jlbQAQccPACgheVhOzBICfSu936tDNoCnPBo
tMEAoIRoq6PbeqNrK444MiwXuxWh1dJU
=MI7X
-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


  -- 
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

Re: Doubt on usage of rsync for chown of existing folders

2015-09-10 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rsync does not change anything on the source.  Only on the target.

Only root can change the ownership of a file.

On 09/10/2015 07:16 PM, Celso de Sousa Junior wrote:
> Hi Kevin,
> 
> Thank you very much. I changed my user in the remote machine (su).
> 
> Then, by trying again with rsync but with no modification in the
> source folder, I see that file ownership continues the same.
> 
> Would be possible for rsync to change the ownership in this case (I
> am not root) ?
> 
> Thanks, Regards, CJ
> 
> 
> 
> 
> Em Quinta-feira, 10 de Setembro de 2015 20:01, Kevin Korb 
>  escreveu:
> 
> 
> The syntax looks correct.  However, note that only root can chown. 
> You must be running rsync on the target end as root for --chown or 
> --owner to work.  If you aren't using root access then just run
> the target rsync as the user you want the files to be owned by and
> it will have no choice.
> 
> On 09/10/2015 06:42 PM, Celso de Sousa Junior wrote:
>> Hi,
> 
>> Please, I am using rsync to synchronize local machine with
>> remote machine.
> 
>> I already have some files copied. Now I have to change the 
>> ownership from existing files in the destination folder.
> 
>> I tried the following options but it did not worked. Can you
>> please help me with other options or alternatives ?
> 
>> --perms --chown=user:group --chmod=777 --exclude-from=$EXCLUDES 
>> -avzi --rsync-path="/usr/local/bin/rsync" -e ssh
> 
>> Thanks, Regards, CJ
> 
> 
> 
> 
> -- 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.   ke...@futurequest.net  (work)
Orlando, Floridak...@sanitarium.net (personal)
Web page:   http://www.sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
- -*~
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iEYEARECAAYFAlXyEZ4ACgkQVKC1jlbQAQdIWACgz9Cn9Nh6Ar78E3fpf4hcVbNE
aeoAoLe54DEQcpMe1S2T+DyY7XvBJRTt
=5BHQ
-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


Re: Doubt on usage of rsync for chown of existing folders

2015-09-10 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The syntax looks correct.  However, note that only root can chown.
You must be running rsync on the target end as root for --chown or
- --owner to work.  If you aren't using root access then just run the
target rsync as the user you want the files to be owned by and it will
have no choice.

On 09/10/2015 06:42 PM, Celso de Sousa Junior wrote:
> Hi,
> 
> Please, I am using rsync to synchronize local machine with remote
> machine.
> 
> I already have some files copied. Now I have to change the
> ownership from existing files in the destination folder.
> 
> I tried the following options but it did not worked. Can you please
> help me with other options or alternatives ?
> 
> --perms --chown=user:group --chmod=777 --exclude-from=$EXCLUDES
> -avzi --rsync-path="/usr/local/bin/rsync" -e ssh
> 
> Thanks, Regards, CJ
> 
> 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
- -*~
Kevin Korb  Phone:(407) 252-6853
Systems Administrator   Internet:
FutureQuest, Inc.   ke...@futurequest.net  (work)
Orlando, Floridak...@sanitarium.net (personal)
Web page:   http://www.sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
- -*~
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iEYEARECAAYFAlXyC+UACgkQVKC1jlbQAQccPACgheVhOzBICfSu936tDNoCnPBo
tMEAoIRoq6PbeqNrK444MiwXuxWh1dJU
=MI7X
-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