I am looking for a script to find out the differences between a local and remote file systems (over SSH). Ideally the script should do the following:
-browse the local file system for folders
-find out whether folder is present on remote file system (report if missing and stop inspecting further the folder)
-for folders present of both file systems, do a diff of files they contain (report whether remote file missing or different).
The only thing I could find on serverfault was example as to how doing diffs on individual files and folders:
How to compare differences between directories (linux)
How do diff over ssh?
The script can be written in any language, it doesn't matter at this point (although bash/perl are preferred).