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
-
On speaking from uncertainty
Article · The Essayist's Notebook
-
Garbage Day on Chud Nuremberg
Article · onfocus.com
-
Stop teaching leadership. Start letting people practise it
Article · The Next Web
-
Is millennial optimism back? The internet thinks so after the 2026 midterms.
Article · Mashable
-
Sephoras fall Savings Event is live: See the top 25 beauty tech deals on multistylers, LED masks, and more
Article · Mashable
-
Midterms deliver clear message: The AI reckoning is here
Article · Mashable