ybaidukuai 发表于 2018-6-18 09:58:01

[数据同步] Linux与Windows进行数据同步

# vim /etc/rsyncd.conf  

  
uid = root                            //运行RSYNC守护进程的用户
  
gid = root                            //运行RSYNC守护进程的组
  
use chroot = no                     //切换到Path所制定的目录下 默认为True
  
pid file = /var/run/rsyncd.pid      //pid文件的存放位置
  
lock file = /var/run/rsync.lock       //锁文件的存放位置
  
log file = /var/log/rsyncd.log      //日志文件的存放位置
  
max connections = 3                   //最大客户端连接数3
  
stirict modes = yes                   //是否检查口令的权限
  
port = 873                            //rsync默认端口
  
                           //认证的模块名 在客户端需要指定
  
path = /share/                        //参与同步的目录
  
ignore errors                         //可以忽略一些无关的IO错误
  
read only = no                        //允许可读可写
  
list = no                           //不允许列出清单
  
hosts allow = 10.208.131.1.199      //允许同步的主机 拒绝其他一切
  
auth users = admin                  //认证的用户名
  
secrets file =/etc/rsyncd.pass      //密码文件存放地址
页: [1]
查看完整版本: [数据同步] Linux与Windows进行数据同步