本文主要参考:
https://www.cnblogs.com/lemon-le/p/8395438.html
实验开始!
rsync 作用: 类似 由客户机向服务器上传文件进行备份的一个过程。
daemon模式下的具体配置
(daemon模式是以守护进程(socket)的方式传输数据)
1.服务器端
(1)rsync以daemon方式运行的时候使用配置文件为rsyncd.conf
(2) rsyncd.conf配置文件
# /etc/rsyncd: configuration file for rsync daemon mode
# See rsyncd.conf man page for more options.
# configuration example:
uid = root
gid = root
use chroot = no
max connections = 2
pid file = /var/run/rsyncd.pid
log file = /var/log/rsyncd.log
lock file = /var/run/rsyncd.lock
[test]
path = /captain/shell
read only = no
auth users = rsync
secret