title: Compare directory structures
body: <p>Is it possible to compare directory structures of two different server? I need to compare the directory structure of a test with that of a production server and list the directories that exists on prod but no in test (the test server has lot less info).
  I am using following rsync command</p>
  
  <pre><code>rsync -rvnc --delete userid@servername:/directory /directory
  </code></pre>
  
  <p>Besides above rsync, i have also tried running find commands on both server, sdiff the two output of find</p>
  
  <pre><code>find directory1 -type d -printf "%P\n" | sort &gt; file1
  
  find directory2 -type d -printf "%P\n" | sort &gt; file2
  
  sdiff file 1 file2 &gt; file3
  </code></pre>
  
  <p>Please help which approach would be better.</p>