zoukankan      html  css  js  c++  java
  • 搭建Rsync服务器

    部署Rsync服务器需要创建至少 一个配置文件,默认在系统中并不存在Rsync配置文件,对于服务器而言,配置文件创建完成后,使用守护进程模式启动rsync程序即可。

    使用Centos 系统安装 部署Rsync 

    下面的案例演示了如何共享以/common目录

    # yum -y install rsync
    # mkdir /common; cp /etc/init.d* /common/
    # vim /etc/rsync.conf
    
    motd file=/etc/rsyncd.motd
    transfer logging = yes
    log file = /var/log/rsyncd.log
    pid file=/var/run/rsyncd.pid
    lock file=/var/run/rsync.lock
    port = 873
    address=192.168.188.80
    uid=root
    gid=root
    use chroot = no
    read only = yes
    max connections=10
    [common]
    comment=Web content
    path=/common
    ignore errors
    auth users=tom,jerry
    secrets file= /etc/rsyncd.secrets
    hosts allow=192.168.0.0/255.255.255.0
    hosts deny=*
    list=false
    

     客户端同步数据

    rsync -vzrtopg --progress tom@192.168.188.80::common /test
    

      

  • 相关阅读:
    Android布局优化
    Handler原理
    最少钱币数:
    ASCII码排序
    Fibonacci数
    奇偶数分离
    认识Dom
    js浏览器对象
    返回/设置时间方法与 Math对象
    window.open
  • 原文地址:https://www.cnblogs.com/alone2015/p/6490388.html
Copyright © 2011-2022 走看看