rsync daemon模式

# centos 7
# server  192.168.1.1
# client   192.168.1.2
# server
yum install rsync
systemctl stop firewalld

# /etc/rsync.passwd
user:123456

# /etc/rsyncd.conf
[share]
    path = /data/rsync
    comment = it is a share dir
    read only = no
    write only = no
    hosts allow = 192.168.1.0/24
    list = yes
    secrets file = /etc/rsync.passwd
    auth users = user

# startup rsync daemon
rsync --daemon
# client
# /etc/rsync.passwd
123456

# command
rsync -avz --password-file=/etc/rsync.passwd rsync://user@192.168.1.1/share/1.txt ./

 

showtooltip

上一篇:【hadoop】启动集群


下一篇:(转)Docker、Containerd、RunC...:你应该知道的所有