<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Diff on WhyNotHugo (雨果)</title><link>https://whynothugo.nl/tags/diff/</link><description>Recent content in Diff on WhyNotHugo (雨果)</description><generator>Hugo</generator><language>en</language><managingEditor>hugo@whynothugo.nl (Hugo Osvaldo Barrera)</managingEditor><webMaster>hugo@whynothugo.nl (Hugo Osvaldo Barrera)</webMaster><lastBuildDate>Sun, 20 Sep 2026 01:48:09 +0200</lastBuildDate><atom:link href="https://whynothugo.nl/tags/diff/posts.xml" rel="self" type="application/rss+xml"/><item><title>Use rsync to compare large directory trees</title><link>https://whynothugo.nl/journal/2026/09/20/use-rsync-to-compare-large-directory-trees/</link><pubDate>Sun, 20 Sep 2026 01:14:13 +0200</pubDate><author>hugo@whynothugo.nl (Hugo Osvaldo Barrera)</author><guid>https://whynothugo.nl/journal/2026/09/20/use-rsync-to-compare-large-directory-trees/</guid><description>&lt;p&gt;I had to rewrite some large back-ups recently in order for restic to properly
de-duplicate them. I checked that the re-written back-ups are identical to the
original ones by comparing the entire directory trees of the mounted back-ups.&lt;/p&gt;
&lt;p&gt;I had some doubts on whether &lt;code&gt;diff -qr&lt;/code&gt; or &lt;code&gt;rsync -acni --delete&lt;/code&gt; would be the
best approach and did some benchmarks and tests using &lt;code&gt;/usr&lt;/code&gt; (total: 3.2GB)
which has a large mix of files and permissions.&lt;/p&gt;</description></item></channel></rss>