1
1
I have 2 solaris boxes and I need to check certain directories (on local filesystem and mounted nfs) to make sure that they match up on both boxes and to delete or move the other mismatches to elsewhere on the local filesystem.
I investigated for unix commands like rsync, and tree but it appears that these commands are not supported on my Solaris boxes.
What is the best approach to this problem with the least pain to solve it ? to use rsync, tree and then diff the outputs or find ?
I have trouble limiting the find command to certain directories as there are mounted folders that contain too many xml files that I don't care to much in that directory.
What's the find command to search multiple directory paths on a single find command?
+1 for rsync by itself. I would suggest using the '-c' checksum option to compare the contents of the files instead of --compare-dest. Should make the whole thing a bit faster since file contents are not transferring over the net, only the md5 values. – Arcege – 2011-02-20T19:13:05.737