使用rsync同步Linux数据到Windows
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的更多相关文章
- rsync同步web数据
rsync远程同步web服务器的数据 实验拓扑 服务器A(rsync服务器)--------------服务器B( ...
- rsync (windows 服务端,linux客户端)将windows上的数据同步到linux服务器,反之也可
一:总体概述. 1.windows上面首先装CW_rsync_Server.4.1.0_installer,安装时要输入的用户名密码要记住哦!接下来就是找到rsyncd.conf进入配置细节 2.li ...
- 用Rsync实现windows下同步linux服务器的数据
一:环境 1.服务端:Red Hat Enterprise Linux Server release 6.4 (Santiago) 2.客户端:windows7旗舰版64位 3.同步对象:测试数据 4 ...
- 使用rsync在linux(客户端)拉取windows(服务端)数据
windows 服务端ip:172.18.18.70 Linux客服端ip: 172.18.54.11 1.windows服务端下载cwRsync Server , 地址:https://www.ba ...
- Linux运维: Rsync同步数据(ubuntu16.04+windows10)
rsync同步数据 -环境:Linux (ubuntu16.04) + windows10 Linux: 安装 sudo apt-get install rsync rsync --version 查 ...
- Windows Linux 之间rsync同步CODE文件
Windows Linux 之间rsync同步CODE文件 一.环境Windows:OS:Microsoft Windows Web Server 2008 SP1IP:192.168.88.197 ...
- Linux下Rsync+sersync实现数据实时同步
inotify 的同步备份机制有着缺点,于是看了sersync同步,弥补了rsync的缺点.以下转自:http://www.osyunwei.com/archives/7447.html 前言: 一. ...
- Windows 之间用rsync同步数据(cwRsyncServer配置)
rsync是一款优秀的数据同步软件,在跨服务器,跨机房,跨国备份服务器的首选工具,下面就来介绍下如何配置安装cwRsyncServer很大多数软件一样是B/C架构,cwRsyncServer是rsyn ...
- Linux下Rsync+Inotify-tools实现数据实时同步
Linux下Rsync+Inotify-tools实现数据实时同步 注意:下面的三个案例都是rsync 每次都是全量的同步(这就坑爹了),而且 file列表是循环形式触发rsync ,等于有10个文件 ...
随机推荐
- ARRAY_SIZE宏
宏ARRAY_SIZE,是求设备结构体中设备的个数, 定义在linux/kernel.h中 #define ARRAY_SIZE(arr) (sizeof(arr)/sizeof((arr)[ ...
- struts2-2.3.4.1的struts-default.xml源码
<?xml version="1.0" encoding="UTF-8" ?> <!-- /* * $Id: struts-default.x ...
- Opc
http://www.tuicool.com/articles/nymUz2 http://blog.chinaunix.net/uid-20692368-id-3434001.html http:/ ...
- VisualSvn Server介绍
1 .VisualSvn Server VisualSvn Server是免费的,而VisualSvn是收费的.VisualSvn是Svn的客户端,和Visual Studio集成在一起,但是不免费 ...
- VNC Server 配置
1. 检查vnc客户端和服务器是否已经安装: [gavin@centos ~]$ rpm -q vnc vnc-server package vnc is not installed vnc-serv ...
- 初识spring与quartz整合实现定时任务
参考资料: http://kevin19900306.iteye.com/blog/1397744 引用自别人的博客: 特别注意一点,与Spring3.1以下版本整合必须使用Quartz1,最初我拿2 ...
- SpingMVC中利用BindingResult将错误信息返回到页面中
SpingMVC中利用BindingResult将错误信息返回到页面中. ActionFrom中: private String name; private String password; get( ...
- Orcle数据库查询练习复习:四
一.题目 1.找出张三的最高分和最低分以及对应的课程名 select * from course c,mark m where c.cid=m.cid and sid =(select sid fro ...
- JavaWeb项目开发案例精粹-第3章在线考试系统-003Dao层
1. package com.sanqing.dao; import java.util.List; import com.sanqing.po.Student; public interface S ...
- makefile使用
linux make手册:http://www.gnu.org/software/make/manual/make.html 一篇文章: 假设我们有一个程序由5个文件组成,源代码如下:/*main.c ...