zoukankan      html  css  js  c++  java
  • 【转】CwRsync简介

    rsync是linux下一款用于同步文件的优秀软件,window下也可以使用它,不过名字为cwRsync。cwRsync也分为客户端和服务端,官方网址:https://www.itefix.no/i2/cwrsync-get,当前使用的版本下载地址:http://zhangrenfang.ys168.com/ 各种rpm安装包文件夹下。也可以参考下http://www.linuxidc.com/Linux/2014-01/95721.htm下载。

    环境准备:

    1. Win7 64位专业版 10.20.139.146

    2. Win7 64位专业版 10.20.139.23

    一、安装服务端

    在10.20.139.23安装cwRsyncServer_4.0.5_Installer.exe(默认安装一直点下一步),安装完成后,在安装的根目录(C:Program Files (x86)ICW)下有一个名为rsyncd.conf文件,即是配置文件,手动在C盘创建work文件夹。修改后的内容如下:

    use chroot = false
    strict modes = false
    hosts allow = *
    log file = rsyncd.log

    # 如果没有uid,gid 的设置linux客户端会提示
    # invalid uid nobody 错误

    uid = 0
    gid = 0
    # Module definitions
    # Remember cygwin naming conventions : c:work becomes /cygwin/c/work
    [test]
    path = /cygdrive/c/work

    # 存放认证密码文件,存放于etc下的testuser.pass中
    # 文件名可以随便取,内容为用户名:密码,例如“testuser:123”

    #auth users = testuser
    #secrets file = etc/testuser.pass
    read only = false
    transfer logging = yes

    启动服务:运行 — services.msc,在打开的“服务”管理器中找到RsyncServer并启动

    二、安装客户端

    在10.20.139.146安装cwRsync_4.0.5_Installer.exe(默认安装一直点下一步),默认安装目录(C:Program Files (x86)cwRsync),进入cmd命令,进入C:Program Files (x86)cwRsyncin目录

  • 相关阅读:
    【转】织梦为栏目添加图片的方法
    写在php设计模式前
    memcache 开机启动
    php 列出当前目录
    print echo 的区别
    php 报错等级
    nginx 启动脚本
    centos 编译 安装php
    修改linux iptable规则
    linux yum 安装软件
  • 原文地址:https://www.cnblogs.com/lyongerr/p/5084150.html
Copyright © 2011-2022 走看看