dwd at bell-labs.com
Wed Jul 25 03:48:43 EST 2001
Sorry for the delayed response, I was on vacation.
The answer is hinted to in the man page under -o:
Note that if the source system is a daemon using chroot, the
--numeric-ids option is implied because the source system cannot
get access to the usernames.
Actually, that says "source" and in your case it is the receiver, but
I think perhaps if you use "use chroot = no" on the receiver/server side
it will probably work. The problem is that after a chroot it can't read
the passwd and group files anymore.
The daemon mode was really designed for being read-only, so you need to
jump through a lot of hoops to write to one. I usually try to discourage
people from doing it.
- Dave Dykstra
On Wed, Jul 18, 2001 at 05:01:00PM +1000, Steven at heimann.com.au wrote:
> I am new to rsync and am having trouble getting the presevation of groups
> to work when I do an rsync copy between two computers. I have tried the
> documentation, the list archives and FAQ and everything seems to indicate
> that it should just work.
> On compA I run the following as root
> rsync -av /apps/ compB::apps
> on compB I have an rsyncd.conf with the following and have run rsync
> log file = /var/log/rsync.log
> path = /apps
> comment = apps
> read only = false
> hosts allow = 192.168.0.0/16
> uid = root
> gid = root
> All the copied files get the gid root instead of the gid from the source.
> I have tried it without the gid=root and then I get a gid of nogroup on all
> files copied to the destination computer.
> I have also tried various combinations of options including --numeric-ids
> -o -g etc. The logs don't seem to indicate any problems.
> Although these two computers are on the same LAN and scp would therefore
> probably be more efficient I am keen to use rsync so I can get this working
> across our WAN which of course only has low bandwidth.
> Could anyone either suggest a solution or point me to some doco which
> covers this.
> Thank you
More information about the rsync