文件傳輸利器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/