我正在尝试使用文本文件来包含rsyncd守护程序的排除文件。 我遵循rsyncd.con手册,并把:
exclude from = /etc/rsync-exclude.txt
但它似乎不工作。 可能的原因是什么?
我search了很多这个问题,但没有什么有用的结果。
更新:这是什么在rsync-exclude.txt
.git (I also tried putting it as /.git but that didn't work either) uploads assets config.inc.php
以下是rsyncd.conf中的全局configuration:
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