Hi all, Has anyone encountered this: On ServerA, I make this directory: /var/ftp/pub/userA with ownership root.root It gets rsynced to serverB with this command: rsync -avzgorp --delete -e ssh /var/ftp/pub/ root at serverB:/var/ftp/pub/ However, when I change the ownership of /var/ftp/pub/userA to userA.userA, this change is not rsync-ed to serverB. Is there any option to achieve this? Thank you very much. -- Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial http://linux2.arinet.org 8:17pm up 12:35, 2.6.16.13-4-default GNU/Linux Let's use OpenOffice. http://www.openoffice.org -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20070123/34d6852a/attachment.sig>
Fajar Priyanto wrote:>Hi all, >Has anyone encountered this: >On ServerA, I make this directory: >/var/ftp/pub/userA with ownership root.root>It gets rsynced to serverB with this command: >rsync -avzgorp --delete -e ssh /var/ftp/pub/ root at serverB:/var/ftp/pub/>However, when I change the ownership of /var/ftp/pub/userA to userA.userA, >this change is not rsync-ed to serverB.>Is there any option to achieve this? >Thank you very much. >-- >Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial >http://linux2.arinet.org >8:17pm up 12:35, 2.6.16.13-4-default GNU/Linux >Let's use OpenOffice. http://www.openoffice.orgFajar, Your rsync command contains extraneous options. The -a actually is a shortcut for -rlptogoD, so all you really need is -avz as options. If you could provide an ls -la of the source and remote directories, that would help tremendously. One thing that comes to mind is to be sure that userA.userA has the same UID & GID on both servers. In my case, where I'm rsyncing to a remote server and the UID/GID don't match, you'll just get numeric IDs as owners and groups on the remote side. So, try eliminating the duplicate options first, be sure UID/GID are the same on both servers. Let us know how it goes. HTH Thanks! Mark Schoonover IS Manager American Geotechnical - California, Nevada and Arizona V-> 858.450.4040 F-> 714.685.3909 C-> 858.472.3816
Fajar Priyanto wrote:>On Wednesday 24 January 2007 00:27, Mark Schoonover wrote: >> Fajar, >> >> Your rsync command contains extraneous options. The -a actually is a >> shortcut for -rlptogoD, so all you really need is -avz as options. If you >> could provide an ls -la of the source and remote directories, that would >> help tremendously. One thing that comes to mind is to be sure that >> userA.userA has the same UID & GID on both servers. In my case, where I'm >> rsyncing to a remote server and the UID/GID don't match, you'll just get >> numeric IDs as owners and groups on the remote side. So, try eliminating >> the duplicate options first, be sure UID/GID are the same on bothservers.>> Let us know how it goes. >> >> HTH > >Hello Mark, >Thank you very much for the correction. I will try it as soon as I get backto>office in a few hours. >In the mean time, I want to confirm that: >- yes, the users has the same uid/gid on both serversFajar, What version of rsync are you using on each machine?? Thanks! Mark Schoonover IS Manager American Geotechnical - California, Nevada and Arizona V-> 858.450.4040 F-> 714.685.3909 C-> 858.472.3816
Fajar Priyanto wrote:> Hi all, > Has anyone encountered this: > On ServerA, I make this directory: > /var/ftp/pub/userA with ownership root.root > > It gets rsynced to serverB with this command: > rsync -avzgorp --delete -e ssh /var/ftp/pub/ root at serverB:/var/ftp/pub/ > > However, when I change the ownership of /var/ftp/pub/userA to userA.userA, > this change is not rsync-ed to serverB. > > Is there any option to achieve this? > Thank you very much. >I wander, could it be that the set user/group id is on the /var/ftp/pub directory on serverB? Even if that would the case I would expect rsync to "overule" the sticky default mode. (ls -ld /var/ftp/pub shows drwxr-xr-x here). You can also try two -v -v options to debug rsync. Theo