<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Rsync on Raveen Kumar</title>
    <link>https://raveenkumar.com/tags/rsync/</link>
    <description>Recent content in Rsync on Raveen Kumar</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>Raveen Kumar</copyright>
    <lastBuildDate>Fri, 24 Feb 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://raveenkumar.com/tags/rsync/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>rsync is weird, does not sync &#34;tags&#34; directory</title>
      <link>https://raveenkumar.com/posts/2023-02-24-rsync-is-weird/</link>
      <pubDate>Fri, 24 Feb 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/posts/2023-02-24-rsync-is-weird/</guid>
      <description>&lt;p&gt;For whatever reason rsync decided not to sync &lt;code&gt;tags&lt;/code&gt; directory since it is ignored in CVS mode. Took a lot time to figure out the problem. Finally this command works correctly.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;code&gt;--include&lt;/code&gt;&lt;/em&gt; used to sync everything, despite ofthe cvs option, -C. But removed in this command.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#x9;rsync -av --delete --checksum --copy-links -rPuzhi ./public/ root@raveenkumar.xyz:/var/www/raveenkumar/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>rsync</title>
      <link>https://raveenkumar.com/library/programming/rsync/</link>
      <pubDate>Fri, 17 Feb 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/library/programming/rsync/</guid>
      <description>&lt;h2 id=&#34;usage&#34;&gt;Usage&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;rsync -P source dest&lt;/code&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;this-is-the-command-that-i-used-for-syncing-this-website&#34;&gt;This is the command that I used for syncing this website&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;# For whatever reason rsync excludes tags directory, so --include used&#xA;rsync -av --delete --checksum --copy-links -rPuzhi ./public/ root@raveenkumar.xyz:/var/www/raveenkumar/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;example---directory-mirroring&#34;&gt;Example - Directory mirroring&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;rsync -PCahzvu --delete $ORIG_PATH/$ORIG_DIR $MIRROR_PATH/.&#xA;&#xA;-P -C: Skip revision control files&#xA;-a: Archive &#xA;-h: Human readable&#xA;-z: zip&#xA;-v: Verbose&#xA;-u: Update&#xA;--delete: Delete directories and files which  is present in mirror directory but not in original directory.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h2 id=&#34;to-exclude&#34;&gt;To exclude&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code&gt;--exclude=”\*/file.txt”&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://superuser.com/questions/555799/how-to-setup-rsync-without-password-with-ssh-on-unix-linux&#34;&gt;https://superuser.com/questions/555799/how-to-setup-rsync-without-password-with-ssh-on-unix-linux&lt;/a&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
