rsync 测试配置

本文主要参考:

https://www.cnblogs.com/lemon-le/p/8395438.html

 

http://man.linuxde.net/rsync

 

实验开始!

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
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值