Doubt on usage of rsync for chown of existing folders

Kevin Korb kmk at sanitarium.net
Thu Sep 10 23:01:57 UTC 2015


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

iEYEARECAAYFAlXyC+UACgkQVKC1jlbQAQccPACgheVhOzBICfSu936tDNoCnPBo
tMEAoIRoq6PbeqNrK444MiwXuxWh1dJU
=MI7X
-----END PGP SIGNATURE-----



More information about the rsync mailing list