[問題] 關於rsync include exclude問題

作者: herbacin (herbacin)   2017-10-21 16:06:18
請問一下各位
如果希望從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

Links booklink

Contact Us: admin [ a t ] ucptt.com