Access via rsync daemon
SERVER: backup (以下配置在服务端backup中完成)
配置文件设置
rpm -q rsync
yum install -y rsync
cp /etc/rsyncd.conf{,.ori_backup}cat > /etc/rsyncd.conf << EOF
# rsync_config______start
uid = rsync
gid = rsync
fake super = yes
use chroot = no
max connections = 200
timeout = 600
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
ignore errors
read only = false
list = false
hosts allow = 172.16.1.0/24
# hosts deny = 0.0.0.0/32
auth users = rsync_backup
secrets file = /etc/rsync.password
[backup]
comment = "Backup directory by Will"
path = /backup
EOF
# hosts allow 与 hosts deny 只可用一个,两个同时用会都失效
# 多模块可共享配置也可单独配置
# 上方的配置项放在模块下则仅对当前模块生效
# 这几项放在模块下的时候则代表分开配置创建用户和备份目录
密码文件配置&检查
启动 & 检查服务状态
CLIENT: nfs01 (以下配置在客户端nfs01中完成)
密码文件配置&检查
pull
push
Last updated