rsync + sersync + inotify-tools实现数据同步

在使用中,rsync.log出现了很多error,记录如下:


错误1:

inotify wd:1 name:16.txtmask:256
inotify wd:1 name:16.txtmask:8
cd /data4/iovn_collect/iov-n-handle-archive-collect-1.3.0/zipDir && rsync -artuz -R  --port=10873 "./16.txt" [email protected]::rsync --password-file=/home/woasis/iovn_rsync_install/sersync/user.pass
@ERROR: setgid failed
rsync error: error starting client-server protocol (code 5) at main.c(1635) [sender=3.1.1]
@ERROR: setgid failed
rsync error: error starting client-server protocol (code 5) at main.c(1635) [sender=3.1.1]

尝试解决办法:

将/etc/rsyncd.conf文件中的gid=root, 修改为自己定义的用户名。


错误2:

inotify wd:1 name:19.txtmask:256
inotify wd:1 name:19.txtmask:8
cd /data4/iovn_collect/iov-n-handle-archive-collect-1.3.0/zipDir && rsync -artuz -R  --port=10873 "./19.txt" [email protected]::rsync --password-file=/home/woasis/iovn_rsync_install/sersync/user.pass
@ERROR: setgroups failed
rsync error: error starting client-server protocol (code 5) at main.c(1635) [sender=3.1.1]
@ERROR: setgroups failed
rsync error: error starting client-server protocol (code 5) at main.c(1635) [sender=3.1.1]

尝试解决办法:

将vim  /etc/rsyncd.conf中的uid和gid两行注释掉。


猜你喜欢

转载自blog.csdn.net/zhangxu1024/article/details/77101349