自动配置 rsynd 服务器的配置文件 rsyncd.conf

自动配置 rsynd 服务器的配置文件 rsyncd.conf

#!/bin/bash
# See rsyncd.conf man page for more options.
[ ! -d /home/ftp ] && mkdir /home/ftp
echo 'uid = nobody
gid = nobody
use chroot = yes
max connections = 4
pid file = /var/run/rsyncd.pid
exclude = lost+found/
transfer logging = yes
timeout = 900
ignore nonreadable = yes
dont compress = *.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2
[ftp]
 path = /home/ftp
 comment = share' > /etc/rsyncd.conf
发布了190 篇原创文章 · 获赞 169 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/weixin_44799645/article/details/105402356