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

来源:互联网 发布:阿依莲正品淘宝折扣店 编辑:程序博客网 时间:2024/05/21 06:44

在使用中,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" woasis@114.255.88.2::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" woasis@114.255.88.2::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两行注释掉。


原创粉丝点击