vim /etc/rsyncd.conf
log file = /var/rsyncd.log
pid file = /var/rsyncd.pid
lock file = /var/rsyncd.lock
secrets file = /etc/rsyncd.passwd
motd file = /etc/rsyncd.motd
read only = yes
hosts allow = 192.3.42.0/24
list = yes
uid = root
gid = root
use chroot = no
max connections = 30
port = 8083
[bak]
path = /home/ftpdata/datafile
comment = datafile
auth users = rsync_backup
[test]
path = /home/ftpdata/datafile/test
comment = test
auth users = rsync_backup
echo "rsync_backup:123456" >> /etc/rsyncd.passwd
chmod 600 /etc/rsyncd.pass
rsync --daemon
rsync -avz --delete --port=8083 [email protected]::test/ /home/ftpdata/datafile/test --password-file=/home/shell/readfile/rsync.passwd
随便看看
文章排行
本栏推荐
栏目更新
Copyright 2020 Inc. AllRights Reserved. Design by 数据同步rsync