您现在的位置是:首页 > 服务器相关

数据同步rsync

batsom2020-12-11服务器相关

简介数据同步rsync

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

郑重声明:

本站所有活动均为互联网所得,如有侵权请联系本站删除处理

随便看看

文章排行

本栏推荐

栏目更新