windows: win7,cwrsyncserver 4.1.0

linux:ubuntu 14.04,rsync 3.1.0

networks:使用360wifi

【Windows端】

是否使用管理员登录没有关系

1. 安装cwrsyncserver,用户名任意,这里使用的是apache

2. 修改rsyncd.conf配置文件

use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
uid = 0  #要加上这两行,否则会出现@ERROR:invalid uid nobody错误
gid = 0  #要加上这两行

[www]
path = /cygdrive/d/rsync/www
ignore errors
read only = no
list = no
host allow = 172.24.202.0/255.255.0.0
auth users = rsync
secrets file = rsyncd.password
transfer logging = yes

3. 创建rsyncd.password文件,放入软件安装目录

rsync:password  用户名:密码

4. 把C:\Program Files (x86)\ICW加入系统环境变量path,没必要设置这一步

设置rsyncd.password文件的权限,chmod 600 rsyncd.password  但是似乎设置无效,而且也没有必要设置

5. 创建d:/rsync/www文件夹,属性->安全,添加rsync用户,并赋予全部权限

6. 关闭windows防火墙

【Linux端】

1. 创建目录/home/user/rsync

2. 创建目录/home/user/rsync/www

3. 创建文件rsyncd.password

password  注意这里只有密码,否则cwrsyncserver会出现password mismatch错误

rsync:password  两种形式可以都试一下,有的系统要求第一种,有的系统两种都可以

4. 设置文件rsyncd.password权限

chmod 600 rsyncd.password  #否则会出现@ERROR:password file must not be other-accessible错误

5. telnet 172.24.202.1 873,测试是否能连到windows的rsync服务器

6. rsync -avz www/ rsync@172.24.202.1::www --password-file=rsyncd.password

Linux端:@ERROR:auth failed on module www

Windows端:missing secret for user "rsync"

低级错误,一般是配置文件中secrets file部分和secret文件名不匹配,或者密码错误

参考:

http://www.ilanni.com/?p=8646

http://willvvv.iteye.com/blog/1480390

使用rsync同步Linux数据到Windows的更多相关文章

  1. rsync同步web数据

    rsync远程同步web服务器的数据 实验拓扑                                            服务器A(rsync服务器)--------------服务器B( ...

  2. rsync (windows 服务端,linux客户端)将windows上的数据同步到linux服务器,反之也可

    一:总体概述. 1.windows上面首先装CW_rsync_Server.4.1.0_installer,安装时要输入的用户名密码要记住哦!接下来就是找到rsyncd.conf进入配置细节 2.li ...

  3. 用Rsync实现windows下同步linux服务器的数据

    一:环境 1.服务端:Red Hat Enterprise Linux Server release 6.4 (Santiago) 2.客户端:windows7旗舰版64位 3.同步对象:测试数据 4 ...

  4. 使用rsync在linux(客户端)拉取windows(服务端)数据

    windows 服务端ip:172.18.18.70 Linux客服端ip: 172.18.54.11 1.windows服务端下载cwRsync Server , 地址:https://www.ba ...

  5. Linux运维: Rsync同步数据(ubuntu16.04+windows10)

    rsync同步数据 -环境:Linux (ubuntu16.04) + windows10 Linux: 安装 sudo apt-get install rsync rsync --version 查 ...

  6. Windows Linux 之间rsync同步CODE文件

    Windows Linux 之间rsync同步CODE文件 一.环境Windows:OS:Microsoft Windows Web Server 2008 SP1IP:192.168.88.197 ...

  7. Linux下Rsync+sersync实现数据实时同步

    inotify 的同步备份机制有着缺点,于是看了sersync同步,弥补了rsync的缺点.以下转自:http://www.osyunwei.com/archives/7447.html 前言: 一. ...

  8. Windows 之间用rsync同步数据(cwRsyncServer配置)

    rsync是一款优秀的数据同步软件,在跨服务器,跨机房,跨国备份服务器的首选工具,下面就来介绍下如何配置安装cwRsyncServer很大多数软件一样是B/C架构,cwRsyncServer是rsyn ...

  9. Linux下Rsync+Inotify-tools实现数据实时同步

    Linux下Rsync+Inotify-tools实现数据实时同步 注意:下面的三个案例都是rsync 每次都是全量的同步(这就坑爹了),而且 file列表是循环形式触发rsync ,等于有10个文件 ...

随机推荐

  1. NGUI Tutorial 3

    一. Create a Button 一.(Menu)NGUI -> Create -> Sprite 二.attach box colider to the Sprite , then ...

  2. Building Plugins for iOS

    This page describes Native Code Plugins for the iOS platform. Building an Application with a Native ...

  3. 【C++基础】构造函数

    说说你对构造函数的理解? 构造函数:对象创建时,利用特定的值构造对象(不是构造类),将对象初始化(保证数据成员有初始值),是类的一个public 函数 ①   与类同名 ②   无返回值 ③   声明 ...

  4. POJ 2253 Frogger (求某两点之间所有路径中最大边的最小值)

    题意:有两只青蛙,a在第一个石头,b在第二个石头,a要到b那里去,每种a到b的路径中都有最大边,求所有这些最大边的最小值.思路:将所有边长存起来,排好序后,二分枚举答案. 时间复杂度比较高,344ms ...

  5. Eclipse jetty

    下载Eclipse的Jetty插件run-jetty-run http://download.csdn.net/detail/zhwq1216/7995627 当修改文件时,不需要进行服务重启设置 R ...

  6. 130701基础练习-first

    // 629.cpp : 定义控制台应用程序的入口点.// #include "stdafx.h"//#include <iostream.h> class Point ...

  7. sparse coding稀疏表达入门

    最近在看sparse and redundant representations这本书,进度比较慢,不过力争看过的都懂,不把时间浪费掉.才看完了不到3页吧,书上基本给出了稀疏表达的概念以及传统的求法. ...

  8. JAVA:23种设计模式详解(转)

    设计模式(Design Patterns) ——可复用面向对象软件的基础 设计模式(Design pattern)是一套被反复使用.多数人知晓的.经过分类编目的.代码设计经验的总结.使用设计模式是为了 ...

  9. 龙芯将两款 CPU 核开源,这意味着什么?

    10月21日,教育部计算机类教学指导委员会.中国计算机学会教育专委会将2016 CNCC期间在山西太原举办“面向计算机系统能力培养的龙芯CPU高校开源计划”活动,在活动中,龙芯中科宣布将GS132和G ...

  10. Chrome中的消息循环

    主要是自己做个学习笔记吧,我经验也不是很丰富,以前学习多线程的时候就感觉写多线程程序很麻烦.主要是线程之间要通信,要切线程,要同步,各种麻烦.我本身的工作经历决定了也没有太多的工作经验,所以chrom ...