<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Raspi</title>
    <link>https://raspi.writeas.com/</link>
    <description>Raspberry Pi | BASH | Tips &amp; Trick </description>
    <pubDate>Wed, 08 Apr 2026 09:21:20 +0000</pubDate>
    <item>
      <title>Copying files with rsync</title>
      <link>https://raspi.writeas.com/copying-files-with-rsync?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[This is the most minimalist guide to copying files with rsync. And quite frankly it&#39;s not as concise. However if you know the basic of linux (mainly debian systems) you will feel right at home. &#xA;&#xA;NOTE: These commands and variables are in assumption that you&#39;re only trying to sync your base home directory from the server to your local machine and vice versa. &#xA;&#xA;Env variables&#xA;sourcehere = /home/$USER/&#xA;destination = /home/$USER/MY-FILES&#xA;serveraddr = user@123.456.7.8:/home/$USER/MY-FILES&#xA;&#xA;---&#xA;&#xA;How I sync...&#xA;&#xA;locally&#xA;rsync --update -vhraz --progress --ignore-existing  --human-readable $sourcehere $destination&#xA;&#xA;globaly&#xA;rsync --update -vhraz --progress --ignore-existing  --human-readable -e &#34;ssh -c aes128-ctr&#34; $serveraddr $destination&#xA;&#xA;aes128-ctr is great for downloading large files from distant servers; especially when downloading to your raspberry pi. &#xA;&#xA;Here&#39;s a copy of the aliases&#xA;&#xA;alias synchome=&#39;sshfs -o ciphers=aes128-ctr,compression=no,autocache,reconnect,kernelcache,allowroot $serveraddr $destination&#39;&#xA;&#xA;alias syncserver=&#39;sshfs -o ciphers=aes128-ctr,compression=no,autocache,reconnect,kernelcache,allowroot $serveraddr $destination&#39;&#xA;&#xA;Make sure you edit $serveraddr &amp; $destination to your preference and add the appropriate folder&#xA;&#xA;Now when you type: synchome the remote server will sync with your local machine. It&#39;s that easy. &#xA;&#xA;br&#xA;br&#xA;&#xA;Till next time....!&#xA;&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p>This is the most minimalist guide to copying files with rsync. And quite frankly it&#39;s not as concise. However if you know the basic of linux (mainly debian systems) you will feel right at home.</p>

<p><strong>NOTE:</strong> These commands and variables are in assumption that you&#39;re only trying to sync your base home directory from the server to your local machine and vice versa.</p>

<h2 id="env-variables" id="env-variables">Env variables</h2>

<p>source<em>here = /home/$USER/
destination = /home/$USER/
server</em>addr = user@123.456.7.8:/home/$USER/</p>

<hr/>

<h2 id="how-i-sync" id="how-i-sync">How I sync...</h2>

<p><strong>locally</strong>
rsync —update -vhraz —progress —ignore-existing  —human-readable $source_here $destination</p>

<p><strong>globaly</strong>
rsync —update -vhraz —progress —ignore-existing  —human-readable -e “ssh -c aes128-ctr” $server_addr $destination</p>

<p><strong>aes128-ctr</strong> is great for downloading large files from distant servers; especially when downloading to your raspberry pi.</p>

<p>Here&#39;s a copy of the aliases</p>

<p>alias sync<em>home=&#39;sshfs -o ciphers=aes128-ctr,compression=no,auto</em>cache,reconnect,kernel<em>cache,allow</em>root $server_addr $destination&#39;</p>

<p>alias sync<em>server=&#39;sshfs -o ciphers=aes128-ctr,compression=no,auto</em>cache,reconnect,kernel<em>cache,allow</em>root $server_addr $destination&#39;</p>

<p><strong>Make sure you edit</strong> <em>$server</em>addr_ &amp; <em>$destination</em> <strong>to your preference and add the appropriate folder</strong></p>

<p>Now when you type: <code>sync_home</code> the remote server will sync with your local machine. It&#39;s that easy.</p>

<p><br>
<br></p>

<p>Till next time....!</p>
]]></content:encoded>
      <guid>https://raspi.writeas.com/copying-files-with-rsync</guid>
      <pubDate>Mon, 04 Jan 2021 14:54:01 +0000</pubDate>
    </item>
  </channel>
</rss>