<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Rsync - Tag - Mulinux | Linux &amp; DevOps Notes</title>
    <link>https://blog.mulinux.com/en/tags/rsync/</link>
    <description>Mulinux - Linux Operations &amp; DevOps blog. Notes on Linux, Kubernetes, Docker and backend engineering.</description>
    <generator>Hugo 0.160.0 &amp; FixIt v0.4.5</generator>
    <language>en</language>
    <lastBuildDate>Sun, 05 Mar 2017 23:00:08 +0800</lastBuildDate>
    <atom:link href="https://blog.mulinux.com/en/tags/rsync/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>rsync server/client配置</title>
      <link>https://blog.mulinux.com/en/rsync-server-client/</link>
      <pubDate>Sun, 05 Mar 2017 23:00:08 +0800</pubDate>
      <guid>https://blog.mulinux.com/en/rsync-server-client/</guid>
      <category domain="https://blog.mulinux.com/en/categories/operations/">Operations</category>
      <description>&lt;h2 class=&#34;heading-element&#34; id=&#34;服务端&#34;&gt;&lt;span&gt;服务端&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e6%9c%8d%e5%8a%a1%e7%ab%af&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;mkdir /etc/rsyncd&#xA;&#xA;vi /etc/rsyncd/rsyncd.conf&#xA;&#xA;uid = root&#xA;gid = root&#xA;hosts allow = *&#xA;use chroot = yes&#xA;max connections = 10&#xA;pid file = /var/run/rsyncd.pid&#xA;lock file = /var/run/rsync.lock&#xA;logf ile = /var/log/rsyncd.log&#xA;timeout = 600&#xA;port = 873&#xA;&#xA;[sh1]&#xA;path = /data1&#xA;read only = yes&#xA;comment = Rsync File&#xA;write only = no&#xA;list = no&#xA;auth users = rsync&#xA;secrets file = /etc/.rsyncd.secrets&#xA;&#xA;[sz1]&#xA;path = /data2&#xA;read only = yes&#xA;comment = Rsync File&#xA;write only = no&#xA;list = no&#xA;auth users = rsync&#xA;secrets file = /etc/.rsyncd.secrets&#xA;　　&#xA;&#xA;vi /etc/.rsyncd.secrets&#xA;&#xA;rsync:passwd&#xA;　　&#xA;&#xA;cat /etc/xinetd.d/rsync&#xA;&#xA;# default: off&#xA;# description: The rsync server is a good addition to an ftp server, as it \&#xA;#&#x9;allows crc checksumming etc.&#xA;service rsync&#xA;{&#xA; disable&#x9;= no&#xA; flags&#x9;= IPv6&#xA; socket_type = stream&#xA; wait = no&#xA; user = root&#xA; #server = /usr/local/bin/rsync&#xA; server = /usr/bin/rsync&#xA; server_args = --daemon --config=/etc/rsyncd/rsyncd.conf&#xA; log_on_failure &amp;#43;= USERID&#xA;}&#xA;　&#xA;&#xA;/etc/init.d/xinetd restart&lt;/code&gt;&lt;/pre&gt;&lt;h2 class=&#34;heading-element&#34; id=&#34;客户端&#34;&gt;&lt;span&gt;客户端&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e5%ae%a2%e6%88%b7%e7%ab%af&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;h3 class=&#34;heading-element&#34; id=&#34;密码&#34;&gt;&lt;span&gt;密码&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e5%af%86%e7%a0%81&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;cat /etc/.rsyncd.secrets&#xA;passwd&lt;/code&gt;&lt;/pre&gt;&lt;h3 class=&#34;heading-element&#34; id=&#34;上传&#34;&gt;&lt;span&gt;上传&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e4%b8%8a%e4%bc%a0&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h3&gt;&lt;p&gt;&lt;code&gt;rsync -vzrtopg --delete --progress test.sh rsync@192.168.2.221::sh1 --password-file=/etc/.rsyncd.secrets&lt;/code&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
