请问一下各位
如果希望从A Server rsync
到 B server /var/apache/html/proj/common/web/uploads/下
rsync 的资料型态只允许.jpg和.png,
请问B Server我该如何设定 A server传过来的档案仅允许.jpg和.png,
其他上传都不允许
我目前B server设定的 rsyncd.conf如下
uid = root
gid = root
use chroot = no
max connections = 100
strict modes = yes
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsyncd.lock
log file = /var/run/rsyncd.log
[web]
path = /var/apache/html/proj/common/web/uploads/
comment = web file
igonre errors
read only = no
write only = no
hosts allow = *
list = false
uid = nobody
gid = nobody
auth users = rsync
secrets file = /etc/rsync.passwd
关于exclude include要如何设定在[web]模组里面才能做到仅允许.jpg和*.png