Windows 与 Linux 文件同步方案
Linux 下安装 rsync
Linux 环境 Ubuntu18.04
sudo apt install rsync
配置
sudo vim /etc/default/rsync
如下:RSYNC_ENABLE 改为 true
RSYNC_ENABLE=true
创建配置文件
先拷贝一份配置文件模板
sudo cp /usr/share/doc/rsync/examples/rsyncd.conf /etc/rsyncd.conf
1.备份一份原文件
sudo cp /etc/rsyncd.conf /etc/rsyncd.conf.bak
2.修改配置文件
sudo vi /etc/rsyncd.conf
提示一下:# GLOBAL OPTIONS 下面为全局配置 # MODULE OPTIONS 下面是模块配置
--------------------------
# 最大连接数