title: Sub directory not getting copied to remote server using Rsync Linux
body: <p>I tried with copying directory and files to remote Linux machine using rsync and incrontab.</p>
  
  <p>It's working fine copying files to remote server.</p>
  
  <p><strong>Incrontab</strong></p>
  
  <pre><code>/data/AMOS_SHARE/CHV_BE/ IN_MODIFY,IN_CREATE,IN_DELETE,IN_CLOSE_WRITE,IN_MOVE /data/AMOS/jboss/chv_rsync.sh
  </code></pre>
  
  <p><strong>Rsync</strong></p>
  
  <pre><code>#!/bin/bash
  chmod -R 775 /data/AMOS_SHARE/CHV_BE
  rsync -avuzh  /data/AMOS_SHARE/CHV_BE/ jboss@xx.xx.xx.xx:/data/AMOS_SHARE/CHV_BE/
  </code></pre>
  
  <p>I created some files in <code>/data/AMOS_SHARE/CHV_BE/</code> folder. It worked fine as well as I created folder in that, it is also working fine. But whenever I creat files in a sub folder, it's not working.</p>
  
  <p>Please help me out.</p>