Best way to compare (diff) a full directory structure?

Posted by Adam Matan on Server Fault See other posts from Server Fault or by Adam Matan
Published on 2009-07-12T10:55:46Z Indexed on 2010/04/08 7:03 UTC
Read the original article Hit count: 283

Filed under:
|
|
|

Hi,

What's the best way to compare directory structures?

I have a backup utility which uses rsync. I want to tell the exact differences (in terms of file sizes and last-changed dates) between the source and the backup.

Something like:

Local file  	             Remote file	                 	 Compare
/home/udi/1.txt (date)(size)   /home/udi/1.txt (date)(size) 	EQUAL
/home/udi/2.txt (date)(size)   /home/udi/2.txt (date)(size) 	DIFFERENT

Of course, the tool can be ready-made or an idea for a python script.

Many thanks!

Udi

© Server Fault or respective owner

Related posts about files

Related posts about filesystems