I want to check the results of a restore from backup. This is, because TimeMachine on MacOS gives me some weird errors and warnings and I want to make sure, everything is in its place again after restoration. While I don't trust TimeMachine to put every file back, I trust it to put every file it restores with the correct content.
I thought about diff -r, but going through roughly 300 GiB may take eternally. I'm fine to compare at least the presence of files but comparing size and date in the same run is even better.
I'm aware of solutions like
diff <(ls -R $PATH1) <(ls -R $PATH2)
but the output is diffish to read. I'd rather like a single line per file found on only one side. Also I have to rely on ls proceeding through the tree in the same order on both sides. This may be different because filesystems may differ.
I'd love most to get a tool for the lazy which takes two pathes and outputs differences up to any desired level of inspection, perhaps something out of macports. But I don't fear ample bashisms.
--size-only
– konchy Jun 07 '23 at 05:27