I just tried duplicating your command and it worked for me. You weren't
simplifying anything in your example, were you?
I used rsync version 2.5.5 on both sides, copying from Linux to Linux.
I'm not aware of any changes to this code in rsync recently though and
can't think of anything that would be OS-dependent.
- Dave Dykstra
On Mon, May 20, 2002 at 07:49:50PM +0800, Leaw, Chern Jian
wrote:> HI,
>
> I had read from the rsync man page on transferring files using the
user's
> numeric id and gid. I have a user which resides on 2 remote sites, having
> the same user names, but different uid and gid on both sites. I'm
> transferring the files as a root user.
> site A site B
> -----------------------------------------------
> usr_A usr_A
> uid = 100 uid = 200
> file1(usr_A)
>
>
> However from the diagram above, I would like transfer file1 from site A to
> site B to usr_A, and file1 does not exists for usr_A in site B. However,
> when copying file1 from A to B, I would like to have usr_A's numeric id
in
> site A to be copied to usr_A's numeric id in site B. I've tried
using the
> following options, but it did preserve usr_A's uid when file1 reaches
site
> B:
>
> rsync -avzo --numeric-ids siteA:/tmp/file1 siteB:/tmp
>
> Is there a way which I can preserve the uid of file1 when it's been
> transferred to site B, hence automatically updating usr_A's uid in site
B to
> 100?
>
> Thanks.
> CJ
>
> --
> To unsubscribe or change options:
http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html