rsync,windows下的gid和uid是什么

cwrsync中的rsyncd.conf需要uid和gid

没有会出错:
C:\Program Files\cwRsync\bin>rsync -r 192.168.60.132::test /cygdrive/c/test
@ERROR: invalid gid nobody
rsync error: error starting client-server protocol (code 5) at main.c(1506) [Receiver=3.0.7]

后来才知道,windows下,uid=0,gid=0即可,折腾好几个小时,真不值。

附:cwrsync的配置文件
rsyncd.conf

use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
uid = 0
gid = 0
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[test]
path = /cygdrive/c/work
read only = false
write only = false
transfer logging = yes

客户端:
rsync -r 192.168.60.132::test /cygdrive/c/test

服务器端安装有问题,无法吧cwrsync-server安装为服务,原因未知,手动起rsync的服务器端
e:\Program Files\ICW\Bin\rsync –config=”/cygdrive/e/program files/icw/rsyncd.conf” –daemon –no-detach

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注