zoukankan      html  css  js  c++  java
  • 实操步骤:sersync安装配置;

    ....

     在所有接受文件端yum install -y rsync安装 rsync

    在推送发布端下载sersync并解压

    ==============================

    [root@01 backup]# rsync -artuz -R --delete ./ 传输用用户名@10.10.1.119::共享目录名 --password-file=/etc/rsync.pas
    @ERROR: auth failed on module 共享目录名
    rsync error: error starting client-server protocol (code 5) at main.c(1503) [sender=3.0.6]

    报了个这样的错;
    要在传输用用户名安装端配置:
    # cat /etc/rsync.pas
    口令
    # cat /etc/rsync.conf
    cat: /etc/rsync.conf: No such file or directory

    # cat /usr/local/sersync2.5.4_64bit/confxml.xml|grep DG
    <remote ip="10.10.1.110" name="共享目录名"/>
    <remote ip="10.10.1.111" name="共享目录名"/>
    <remote ip="10.10.1.119" name="共享目录名"/>

    # cat /usr/local/sersync2.5.4_64bit/confxml.xml|grep users
    <auth start="true" users="传输用用户名" passwordfile="/etc/rsync.pas"/>
    在rsync安装端配置:
    # cat /etc/rsync.pas
    传输用用户名:口令
    [root@product08-fastfile ~]# cat /etc/rsync.conf |grep 传输用用户名
    auth users = 传输用用户名
    [root@product08-fastfile ~]# cat /etc/rsync.conf |grep DG
    [共享目录名]
    path = /opt/共享目录名
    [root@product08-fastfile ~]# cat /etc/rsync.conf |grep pas
    secrets file = /etc/rsync.pas
    重启rsync端服务
    [root@OperMainManager localhost]# ps aux|grep rsync
    root 25651 0.0 0.0 107628 564 ? Ss Jun03 0:00 rsync --daemon --config=/etc/rsync.conf
    root 29148 0.0 0.0 103252 832 pts/0 S+ 16:39 0:00 grep rsync
    [root@OperMainManager localhost]# kill -9 25651
    [root@OperMainManager localhost]# rsync --daemon --config=/etc/rsync.conf
    [root@OperMainManager localhost]# ps aux|grep rsync
    root 29152 0.0 0.0 107628 564 ? Ss 16:40 0:00 rsync --daemon --config=/etc/rsync.conf
    root 29154 0.0 0.0 103252 836 pts/0 S+ 16:40 0:00 grep rsync
    [root@OperMainManager localhost]#

    重启sersync端服务
    /usr/local/sersync2.5.4_64bit/sersync2 -r -d -o /usr/local/sersync2.5.4_64bit/confxml.xml

  • 相关阅读:
    setlocale set the current locale
    测试一个目录下的文件共有多少行
    ping中用到的校验和算法
    atomic integer operations P176
    我要理解1为什么是0xffffffff,所以写了下面的程序理解。
    贝叶斯网络中一个节点的类
    bash 的浮点除法
    shell(1)
    AndroidBroadcast详解与汇总
    AndroidActivity详解与汇总
  • 原文地址:https://www.cnblogs.com/taosim/p/3029048.html
Copyright © 2011-2022 走看看