{"id":34,"date":"2008-02-27T23:31:48","date_gmt":"2008-02-27T15:31:48","guid":{"rendered":"http:\/\/amjet.dyndns.biz\/blog\/IT\/?p=34"},"modified":"2013-03-01T19:50:46","modified_gmt":"2013-03-01T11:50:46","slug":"%e5%88%a9%e7%94%a8-rsync-%e5%8d%94%e5%ae%9a%e5%90%8c%e6%ad%a5-windows-%e5%92%8c-linux-%e7%b3%bb%e7%b5%b1%e4%b8%8a%e7%9a%84%e6%aa%94%e6%a1%88","status":"publish","type":"post","link":"https:\/\/blog.amjet.biz\/IT\/?p=34","title":{"rendered":"\u5229\u7528 rsync \u5354\u5b9a\u540c\u6b65 Windows \u548c Linux \u7cfb\u7d71\u4e0a\u7684\u6a94\u6848"},"content":{"rendered":"<p>\u5f88\u65e9\u5c31\u6709\u9019\u500b\u9700\u6c42\u4e86\uff0c\u4f46\u662f\u4e00\u76f4\u5805\u6301\u8981\u627e win32 native\u3001open source \u7684 client \u8edf\u9ad4\uff0c\u627e\u5230\u7684\u4e0d\u662f\u4e0d\u5bb9\u6613\u64cd\u4f5c\u5c31\u662f\u4e0d\u7a69\u5b9a\uff0c\u6700\u5f8c\u9084\u662f\u56de\u4f86\u7528\u65e9\u5c31\u77e5\u9053 cygwin port \u5957\u4ef6\u3002<\/p>\n<p><strong>Linux \u7aef\u8a2d\u5b9a<\/strong><\/p>\n<p>Step 1. \u555f\u52d5 rsync service\uff0c\u9019\u90e8\u4efd\u5404 distribution \u7684 UI \u90fd\u4f5c\u7684\u4e0d\u932f\u4e86\uff0c\u4e0d\u518d\u8a73\u8ff0<\/p>\n<p>Step 2. \u8a2d\u5b9a \/etc\/rsyncd.conf<\/p>\n<p>[notebook]<br \/>\npath=&lt;\u5132\u5b58\u6a94\u6848\u7684\u8def\u5f91&gt;<br \/>\nread only=false<br \/>\n<span>incoming chmod=a+rx,u+w<\/span><br \/>\ncharset=utf8<br \/>\nuid=&lt;linux \u7528\u6236\u5e33\u865f&gt;<br \/>\ngid=&lt;linux \u7528\u6236\u7fa4\u7d44&gt;<\/p>\n<p>\u8981\u6ce8\u610f\u7684\u662f\u7d05\u5b57\u90e8\u4efd\uff0cwindows \u50b3\u4e0a\u4f86\u7684\u6a94\u6848\u672a\u6307\u5b9a\u7684\u8a71 permission \u90fd\u662f -w&#8212;&#8212;-\uff0c\u5982\u679c\u662f\u76ee\u9304\u800c\u4e14\u6c92\u6709 x permission\uff0c\u5e95\u4e0b\u7684\u6a94\u6848\u540c\u6b65\u6642\u99ac\u4e0a\u6703\u6709 permission deny \u7684\u932f\u8aa4\u3002<\/p>\n<p><strong>Windows \u7aef\u8a2d\u5b9a<\/strong><\/p>\n<p>Step 1. \u4e0b\u8f09 <a href=\"http:\/\/www.itefix.no\/phpws\/index.php?module=pagemaster&amp;PAGE_user_op=view_page&amp;PAGE_id=6&amp;MMN_position=150:150\">cwRsync<\/a> \u5957\u4ef6\u5148\u5b89\u88dd\u597d<\/p>\n<p>Step 2. \u628a\u9019\u500b batch \u6a94\u653e\u5728 windows \u8981\u540c\u6b65\u7684\u76ee\u9304\u4e0b\uff0c\u4ee5\u5f8c\u8dd1 batch  \u5c31\u597d\u4e0d\u7528\u6253\u4e00\u9577\u4e32\u6307\u4ee4<\/p>\n<p>@echo off<\/p>\n<p>set CWRSYNC_HOME=&lt;cwRsync \u5b89\u88dd\u76ee\u9304&gt;<br \/>\nset REMOTE=rsync:\/\/&lt;rsync server ip&gt;\/notebook<br \/>\n&#8220;%CWRSYNC_HOME%\\bin\\rsync&#8221; -vurt %REMOTE% .<\/p>\n<p>\u6ce8\u610f\u4e8b\u9805: cwRsync \u5957\u4ef6\u9644\u7684 cygwin1.dll \u7a0b\u5f0f\u5eab\u7121\u6cd5\u6b63\u78ba\u8655\u7406\u4e2d\u6587\u6a94\u540d\uff0c\u53ea\u8981\u78b0\u5230\u4e2d\u6587\u76ee\u9304\uff0c\u5e95\u4e0b\u7684\u6a94\u6848\u90fd\u6703\u88ab\u5ffd\u7565\u6389\uff0c \u5230\u9019\u500b <a href=\"http:\/\/www.okisoft.co.jp\/esc\/utf8-cygwin\/download.html\">\u7db2\u7ad9<\/a> \u4e0b\u8f09\u652f\u63f4 UTF-8 \u7de8\u78bc\u7684\u7a0b\u5f0f\u5eab\u8986\u84cb\u6389\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p><strong>[ratings]<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f88\u65e9\u5c31\u6709\u9019\u500b\u9700\u6c42\u4e86\uff0c\u4f46\u662f\u4e00\u76f4\u5805\u6301\u8981\u627e win32 native\u3001open source \u7684 client \u8edf\u9ad4\uff0c\u627e\u5230\u7684\u4e0d\u662f\u4e0d\u5bb9\u6613\u64cd\u4f5c\u5c31\u662f\u4e0d\u7a69\u5b9a\uff0c\u6700\u5f8c\u9084\u662f\u56de\u4f86\u7528\u65e9\u5c31\u77e5\u9053 cygwin port \u5957\u4ef6\u3002 Linux \u7aef\u8a2d\u5b9a Step 1. \u555f\u52d5 rsync service\uff0c\u9019\u90e8\u4efd\u5404 distribution \u7684 UI \u90fd\u4f5c\u7684\u4e0d\u932f\u4e86\uff0c\u4e0d\u518d\u8a73\u8ff0 Step 2. \u8a2d\u5b9a \/etc\/rsyncd.conf [notebook] path=&lt;\u5132\u5b58\u6a94\u6848\u7684\u8def\u5f91&gt; read only=false incoming chmod=a+rx,u+w charset=utf8 uid=&lt;linux \u7528\u6236\u5e33\u865f&gt; gid=&lt;linux \u7528\u6236\u7fa4\u7d44&gt; \u8981\u6ce8\u610f\u7684\u662f\u7d05\u5b57\u90e8\u4efd\uff0cwindows \u50b3\u4e0a\u4f86\u7684\u6a94\u6848\u672a\u6307\u5b9a\u7684\u8a71 permission \u90fd\u662f -w&#8212;&#8212;-\uff0c\u5982\u679c\u662f\u76ee\u9304\u800c\u4e14\u6c92\u6709 x permission\uff0c\u5e95\u4e0b\u7684\u6a94\u6848\u540c\u6b65\u6642\u99ac\u4e0a\u6703\u6709 permission deny \u7684\u932f\u8aa4\u3002 Windows \u7aef\u8a2d\u5b9a Step 1. \u4e0b\u8f09 cwRsync \u5957\u4ef6\u5148\u5b89\u88dd\u597d Step 2. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[84,85],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-other","tag-rsync","tag-85"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=34"}],"version-history":[{"count":5,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":732,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/34\/revisions\/732"}],"wp:attachment":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}