I'm searching for the ultimate in hand-holding, peel-my-grape recursive directory diff tools for the lazy.
I'm looking for something that does (and here's where my vocabulary fails me) a "diff" between two directory structures. Like many things for which I've searched and not found, it's probably either a result of me not knowing the correct terminology or just being insanely specific.
Beyond Compare, from a similar thread, looked nifty, but I don't need comparisons
within files, just
between them, that is, either the files are the same, or they aren't. And they aren't all text, either, which the product page indicates is an issue. ExamDiff Pro doesn't seem to do subdirectories.
Supposing I have three directories. The third directory is empty and called "duplicates." The first two directories are filled with files, subdirectories, and files in those subdirectories. They're mostly similar. And that's the problem, they're mostly just duplicates. Text files, compressed video, Word documents, all kinds of stuff.
I'm looking for a utility that recursively compares the first directory to the second. Should it find a file in the second directory that has the same filename and is, upon a binary comparison, the same file as one in the first directory, the software moves it to the third "duplicates" directory, preserving the overall directory structure.
This would leave the first directory a mostly-empty skeleton with just a few files in it, the second directory untouched, and the third directory a bunch of redundant files in a similar directory structure to the first and filled with yummy deletable files.
I've written non-recursive scripts that do this on a very small scale, but I don't quite have the confidence, time, or inclination to really expand it. Alternatively, I could handle a readout that just displayed the files that were "new" or "different," while ignoring files that are "same" or "missing." It wouldn't be as convenient, but I'm willing to settle.
My two requirements for it are:
1) Runs on Windows, preferably NTFS-friendly
2) Either freeware, shareware, or something relatively cheap. I'm not looking to spend $200 on it.
What on Earth do you
call such software, aside from automagically delicious? Which do
you use, and why do you like it?
No, CVS/Subversion isn't a solution at the moment.
You'll need to do a little bit of reading and experimentation to get rsync doing exactly what you want, but the chances are *very* good that rsync can do it. The '-n' option will be your friend. It provides a 'dry run' mode, so you can see if you got all the switches and syntax correct without risking anything.
posted by dehowell at 8:07 AM on January 11, 2008