首页 > linux > rsync windows 与 linux之间同步

rsync windows 与 linux之间同步

2010年11月16日 eric 发表评论 阅读评论

由于业务需求必须要用到windows服务器,可是数据要如何与linux共享呢?最开始一直用最古老的windows共享,然后 linux来挂载·心里总觉得怪怪的,有个疙瘩,总是怀疑这个古老的共享方式给我带来麻烦,所以这种方式用在生产上就是一个不确定性因素。后来看到了windows也支持rsync,需要下载cwRsyncServer。把我的这个疙瘩也就解开了。在windows下安装rsync服务,linux同步就是了。

安装 cwRsyncServer 要注意的是

要输入你 window服务器上的 用户名和密码。

修改 C:\Program Files\ICW\rsyncd.conf 配置文件

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

path = /cygdrive/d/work
read only = false
ignore errors
transfer logging = yes
# 因为我的windows 没暴露在外网所以我匿名同步就可以 不需要以下这参数
# auth users = eric
# secrets file = /cygdrive/d/pass/rsyncd.secrets


在linux 同步看下

首先在 windows 服务器上创建几个文件


rsync -avz --progress --delete eric@ /root/yangzi/
receiving incremental file list
新建 文本文档.txt
           0 100%    0.00kB/s    0:00:00 (xfer#1, to-check=3/5)
新建 公文包/
新建 公文包/desktop.ini
          95 100%   92.77kB/s    0:00:00 (xfer#2, to-check=1/5)
新建 公文包/公文包数据库
         153 100%    3.74kB/s    0:00:00 (xfer#3, to-check=0/5)

sent 90 bytes  received 479 bytes  379.33 bytes/sec
total size is 248  speedup is 0.44

转载请注明:文章转载自:Eric's linux and nginx! (http://www.nginxs.com)

分类: linux 标签: ,
  1. 2010年11月16日14:10 | #1


  2. 2011年5月10日16:48 | #2


  3. 小荣
    2013年1月4日17:54 | #3

    我同步之后 客户端的文件会出现权限不正确的问题,请问师兄如何解决,感谢。
    注:服务端和客户端都使用window2008 ,使用rsync4.02版本。

  4. 2017年8月19日16:03 | #4

    cheapest car insurance
    [url=http://carxxinsurancexx.org/]cheap auto insurance quotes[/url]
    cheap auto insurance
    cheap car insurance

  5. 2017年9月2日09:09 | #5

    levitra for sale in canada
    levitra prices
    where can i buy levitra online

  6. 2017年9月29日01:52 | #6

    Kamagra Bestellen Wo Prix Du Misoprostol cialis Order Viagara On Line Can Amoxicillin Cause Yeast Infection Sildenafil 10 Mg

  7. 2017年10月3日03:09 | #7

    Order generic isotretinoin low price internet overseas Cheap Kamagra Tablets viagra Order Prednisone For Dogs

  8. 2017年10月3日05:29 | #8

    Xenical No Prescription Clomiphene Citrate 50 Mg Men viagra online pharmacy Adefovir

  9. 2017年10月3日18:13 | #9

    short payday loans
    bad credit loans monthly payments
    need money today

  10. 2017年10月5日20:10 | #10

    Cialis In Bangkok Where To Buy Periactin Pills Pre Medicate With Amoxicillin buy viagra online What Is Keflex Meds For Viagra Generique France

  11. 2017年10月8日21:10 | #11

    Acquista Propecia 5 Alfa Reduttasi buy cialis Zithromax Ebay

  12. 2017年10月11日04:45 | #12

    Pillole Viagra Immagini [url=http://genericcial.com]viagra cialis[/url] Fml

  13. 2017年10月11日08:17 | #13

    Domperidone Without Script Accutane Tablets Buy Sertraline Of Shore viagra Clobetasol Overnight With Free Shipping Oldham

  14. 2017年10月13日23:07 | #14

    Propecia From Canada Bentyl Muscle Spasms Internet Mastercard Accepted Without Perscription viagra Buy Doxycycline North Ayrshire Cialis Levitra Comprar

  15. 2017年10月17日00:01 | #15

    Buy Metformin Without Doctor online pharmacy Ginette 35 No Rx Buy Potenzmittel Cialis Haltbarkeit

  16. 2017年10月22日21:19 | #16

    Viagra Acquisto In Contrassegno cialis buy online Farmaco Equivalente Priligy Donar Sangre Receta Propecia

  17. 2017年10月28日04:01 | #17

    Viagra Frau Vergleich Prix Cialis One Day Buy Amoxicillin Online Rush Delivery viagra Acyclovir Without Insurance Where Can I Buy Discount Progesterone Medication Shop

  18. 2017年10月28日08:35 | #18

    Priligy Virosta viagra online prescription Propecia Herz Out Of Date Amoxicillin

  19. 2017年11月2日18:06 | #19

    Viagra Fa Male Al Cuore cheap cialis direct isotretinoin next day delivery discount Cialis In Erboristeria

  20. 2017年11月12日08:15 | #20

    WOW just what I was searching for. Came here by searching for backpacking

  21. 2017年11月13日10:04 | #21

    Cialis Kaufen Vergleich Januvia buy viagra online Cialis Prix France Pharmacie

  22. 2017年11月17日06:34 | #22

    Over The Counter Metrogel Kamagra Sales buy cialis Levitra 20 Mg Cost Walmart Viagra In 3 Days Indocin For Sale

  23. 2017年11月22日10:42 | #23

    payday loans las vegas nv
    on line loans
    loans for bad credit with monthly payments
    payday loan reviews

  24. 2017年11月24日03:16 | #24

    bonus slots
    canada casino
    best online casinos
    dreams casino

  25. 2017年11月29日09:54 | #25

    Hello i am kavin, its my first occasion to commenting anywhere, when i read this paragraph i thought i could also create comment due to this sensible paragraph.

  26. 2017年11月30日07:46 | #26

    Viagra Erfinder Albaner Achat Amoxicillin Generique Priligy Information Produit generic viagra Propecia Information

  27. 2017年12月4日20:04 | #27

    Biotin Amoxicillin In Pigs Buy Cephalexin Liquid cialis On Sale On Line Provera Medication Cod Only

  28. 2017年12月5日10:20 | #28

    For the reason that the admin of this website is working, no uncertainty very quickly it will be
    renowned, due to its feature contents.

  29. 2017年12月8日04:16 | #29

    free online casino games
    online casino
    casino game
    casino online
    free casino games

  30. 2017年12月10日12:14 | #30

    loans for bad credit
    cash loans no credit check
    payday loans for bad credit
    payday loans no credit
    no credit check loans

  31. 2017年12月12日12:49 | #31

    payday loans for bad credit
    online payday loans no credit check
    payday loans for bad credit
    loans for bad credit
    no credit check loans

  32. 2017年12月19日15:55 | #32

    online casino real money
    casino games list
    casino online
    casino games list
    casino games list

  33. 2017年12月23日08:58 | #33

    payday loans no credit
    payday loans no credit check
    payday loans online no credit check
    payday loans no credit check
    payday loans online no credit check

  34. 2018年1月4日02:46 | #34

    payday loans
    loans no credit
    loans for bad credit
    payday loans
    loans no credit check

  35. 2018年1月7日04:24 | #35

    It’s actually very complex in this active life to listen news on TV, so I only use internet for
    that purpose, and obtain the most recent information.

  36. 2018年1月14日04:42 | #36

    payday loans online no credit check
    payday loans no credit check
    loans no credit
    payday loans no credit
    loans for bad credit

  37. 2018年1月15日17:10 | #37

    real money casino
    real money casino
    casino games
    online casino
    casino games

  38. 2018年1月23日20:39 | #38

    play slots for real money
    online casinos real money
    free casino games and poker
    us online casinos
    top online casino

  39. 2018年2月2日10:25 | #39

    online casino real money
    best online casino games free
    play casinos
    free casino games and poker
    pogo casino slots

  40. 2018年2月6日15:14 | #40

    best supplements for weight loss
    weight loss for women
    weight loss pill
    best diet pills for weight loss
    weight loss pills over the counter

  41. 2018年2月6日18:20 | #41

    Asbestos is a cloth fabricated from tiny fibers.

  42. 2018年2月8日09:12 | #42

    hello!,I really like your writing so much! share we keep up a correspondence more about your article on AOL?
    I need an expert in this area to resolve my problem. May be that
    is you! Having a look forward to see you.

  43. 2018年2月10日03:32 | #43

    I’m not sure exactly why but this web site is loading very slow for me.
    Is anyone else having this problem or is it a issue
    on my end? I’ll check back later and see if the problem
    still exists.

  44. 2018年2月10日08:10 | #44

    Not all crops are equally efficient as bonsai.

  45. 2018年2月12日20:50 | #45

    Since writing a summary may occasionally be tedious job because this is the location where you truly start contemplating your essay critically. Writing a thesis statement demands great intelligence from the face of the essay author as it ought to define the fundamental notion of the publication. Essay writing generally comes as a challenge for men and women that aren’t utilised to writing essays and it’s a very enormous job usually for the pupils who don’t have any type of experience in writing essays.
    Content writing is also a kind of essay writing, only you ought to be careful using the principles, if you believe that it’s possible to write essay properly then easily you might also write the content, it’s not in any way a huge thing. It is the chief portion of the prewriting procedure of an article.
    Personalised assignment writing service company will have their own sites Apparently, a badly written article reflects the sort of service which you offer.
    Besides this it is likewise significant or a writer to possess the specific understanding about the subject of this essay so that he doesn’t have to manage any trouble in the future when writing the essay. Before composing really good article, one needs to clearly know what sort of article he or she’s meant to write whether it’s a journalism post, professional article, review article or post for a website since every one of such posts have their personal defined writing styles. In case you have any fiscal essay writing problem, let’s know for we shall aid you with writings which are quality and which are free of plagiarism.
    Another aspect to consider is that by applying an essay support similar to this you, you also run the danger of your instructor having a look at the article and discovering that it sounds nothing like your prior attempts. So, once you’re doing your assignment you should be aware you’ve put all required information regarding your own research. Very very good essay writers have the capability to give help to their students if it’s required.
    Whatever the impacts, the expression paper writing service business will nonetheless grow. Internet isn’t only alternative technique to traditional procedures of music distribution, but in addition a wonderful prospect for artists and music-recording businesses to expose those products to broad public. Many writing companies won’t turn off customers if they’re just under what they’re asking.

  46. 2018年2月15日04:48 | #46

    casino games slots
    online gambling sites for real money
    online gambling casino
    casino games roulette
    online casinos for us players

  47. 2018年2月16日21:13 | #47

    And the trimmings weren’t removed from that space.

  48. 2018年2月18日00:54 | #48

    Let’s face it, lawn care companies abound.

  49. 2018年2月18日12:52 | #49

    Delgado Strain Washing is licensed and insured.

  50. 2018年2月18日12:52 | #50

    When I originally commented I clicked the “Notify me when new comments are added” checkbox
    and now each time a comment is added I get several emails with the same comment.
    Is there any way you can remove me from that service?
    Many thanks!

1 2 301
0+5= (必填)