2018年8月21日 星期二

解決 rsync error: protocol incompatibility (code 2) at compat.c(62)

可能是 rsync client (rsync  version 2.5.7  protocol version 26)版本太舊

修改 /etc/xinetd.d/rsync 加入 --protocol 30

# default: off
# description: The rsync server is a good addition to an ftp server, as it \
# allows crc checksumming etc.
service rsync
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon  --protocol 30
log_on_failure += USERID
}

沒有留言: