Use rsync to compare large directory trees
Источник: 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
Похожее
-
On speaking from uncertainty
Статья · The Essayist's Notebook
-
Garbage Day on Chud Nuremberg
Статья · onfocus.com
-
Stop teaching leadership. Start letting people practise it
Статья · The Next Web
-
Is millennial optimism back? The internet thinks so after the 2026 midterms.
Статья · Mashable
-
Sephoras fall Savings Event is live: See the top 25 beauty tech deals on multistylers, LED masks, and more
Статья · Mashable
-
Midterms deliver clear message: The AI reckoning is here
Статья · Mashable