文件传输利器Rsync
- 下载
wget -c https://download.samba.org/pub/rsync/src/rsync-3.2.3.tar.gz
- 解压
tar -zxvf sync-3.2.3.tar.gz
- 编译&安装
./configure
make
make install
- 添加配置文件
/etc/rsyncd.conf
address=10.226.246.37
port=873
uid=root
gid=nobody
use chroot=yes
max connections=50
pid file=/var/run/rsyncd.pid
log file=/var/rsyncd.log
list=yes
[data]
path=/Users/jackmanwu/Documents/backup
uid=root
gid=nobody
read only=no
- 启动
sudo rsync --daemon --config=/etc/rsyncd.conf
- 使用
rsync -r xxxx 10.226.246.37::data/