Use rsync to compare large directory trees
Source: Hugo's weblog on WhyNotHugo (雨果) ·
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. I had some doubts on whether diff -qr or rsync -acni --delete would be the best approach and did some benchmarks and tests using /usr (total: 3.2GB) which has a large mix of files and permissions. I first tried a bind mount, but diff skips comparing anything entirely since it determines that both directories have the same device/inode. I used a copy of /usr inst
More like this
-
4th November 2026 at 18:09
Article · Robb Knight • Everything • RSS Feed
-
In The Bedroom
Article · Nick Carr / Location Scout
-
Synology & UGREEN Dockhand Docker Version 1.0.57
Article · Marius Hosting
-
How to Install OpenTodo on Your Synology NAS
Article · Marius Hosting
-
Aformic raises $6.95M to move its factory robots into AI data centres
Article · The Next Web
-
Galantas CEO Mario Stifano on AI, data centres and the copper supply gap
Article · The Next Web