<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Rsync on Janusworx</title><link>https://janusworx.com/tags/rsync/</link><description>Recent content in Rsync on Janusworx</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>feedback@janusworx.com (Mario Jason Braganza)</managingEditor><webMaster>feedback@janusworx.com (Mario Jason Braganza)</webMaster><copyright>© 2026, Mario Jason Braganza</copyright><lastBuildDate>Sun, 18 Sep 2022 19:43:24 +0530</lastBuildDate><atom:link href="https://janusworx.com/tags/rsync/index.xml" rel="self" type="application/rss+xml"/><item><title>Exclude Files and Folders From an Rsync Copy</title><link>https://janusworx.com/work/exclude-files-and-folders-from-an-rsync-copy/</link><pubDate>Sun, 18 Sep 2022 19:43:24 +0530</pubDate><author>feedback@janusworx.com (Mario Jason Braganza)</author><guid>https://janusworx.com/work/exclude-files-and-folders-from-an-rsync-copy/</guid><description>&lt;p&gt;I’ve been sticking to plain old &lt;code&gt;rsync -az&lt;/code&gt; to sling files around using &lt;a href="https://download.samba.org/pub/rsync/rsync.1" target="_blank" rel="noreferrer"&gt;Rsync&lt;/a&gt;.&lt;br&gt;
Until I ran into a hiccough today, where I filled up my teensy remote storage on the Pi, because a couple of subdirectories that were part of the run, were hundreds of megabytes large.&lt;sup id="fnref:1"&gt;&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref"&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;So I did the usual, did hunt around the web thing, and learnt about &lt;code&gt;--exclude&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;So now the new Rsync command is …&lt;/p&gt;
&lt;p&gt;&lt;code&gt;rsync -az src dest --exclude={'excluded_dir_1','excluded_dir_2'}&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;And my poor Pi no longer has disk full nightmares.&lt;/p&gt;
&lt;div class="footnotes" role="doc-endnotes"&gt;
&lt;hr&gt;
&lt;ol&gt;
&lt;li id="fn:1"&gt;
&lt;p&gt;I’d expected the normal run to be a few hundred kilobytes in size.&amp;#160;&lt;a href="#fnref:1" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description></item></channel></rss>