I am in the need to compare the contents of two - four folders. The way I need to compare them is as follows:
compare all contents in folders including subdirectories
If something exsists in one and not the other.
any modifications of files will be confirmed before changing and what the difference is
Basically these need to be mirrored copies and if one gets an updated file the rest when compared need to update accordingly or if something is deleted from one it will be added back in the next comparison.
I have found the diff and rsync commands but I am lost as to as to get the correct triggers for what I want to do. I am also new to scripting and I am pretty sure this could be done with a script but not sure how to write one to work how I need. Anyone have any good tricks they can share or point me in a direction to read something that can show me how to accomplish what I need to do.