rsyncd.conf 从配置中排除不起作用

rsyncd.conf 从配置中排除不起作用

我正在尝试使用文本文件来包含 rsyncd 守护进程的排除文件。我按照 rsyncd.con 手册操作并输入:

exclude from = /etc/rsync-exclude.txt 

但它似乎不起作用。可能的原因是什么?

我用 Google 搜索了很多关于这个问题的信息,但没有找到任何有用的信息。

更新:这是 rsync-exclude.txt 中的内容

.git (I also tried putting it as /.git but that didn't work either)
uploads
assets
config.inc.php

以下是 rsyncd.conf 中的全局配置:

uid = www
gid = www
max connections = 600
use chroot = no
transfer logging = yes
log file = /var/log/rsyncd.log
log format = %t %a %m %f %b
log file = /var/log/rsyncd.log
pid file=/var/run/rsyncd.pid
lock file=/var/run/rsyncd.lock
#motd file = /etc/rsyncd/rsyncd.motd

read only = no
list = no
ignore errors = yes

相关内容