/etc/rsyncd.conf uid = dcos0
gid = dcos0
use chroot = no
read only = false write
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsyncd.lock
[openwrt]
path = /openwrt/
ignore errors
read only = false
list = false
hosts allow = 0.0.0.0/0
hosts deny = 0.0.0.0/0
auth users = dcos0
secrets file = /etc/rsync.password
~
rsync.password
dcos0:88888888
删除所有文件
rm -rf /etc/tvheadend/*
启动服务
rsync --daemon
rsync -av --progress --delete rsync://dcos0@wifisx.com/openwrt/sxty/etc/tvheadend/ /etc/tvheadend --password-file=/etc/rsync.passwd