title: rsync include from list and delete from list
body: <p>I try to make a rsync with list of include and list of delete file.</p>
  
  <p>My source dir looks like :</p>
  
  <pre><code>app/
      config/
          ignore.php
          include.php
  </code></pre>
  
  <p>My destination dir looks like :</p>
  
  <pre><code>app/
      delete.php
  </code></pre>
  
  <p>In include.txt file :</p>
  
  <pre><code>app/config/include.php
  </code></pre>
  
  <p>In delete.txt file :</p>
  
  <pre><code>app/delete.php
  </code></pre>
  
  <p>I have tried this command :</p>
  
  <pre><code>rsync -avz --include-from=include.txt --delete-excluded --exclude-from=delete.txt src/ dest/
  </code></pre>
  
  <p>The result is :</p>
  
  <pre><code>sending incremental file list
  ./
  app/
  deleting app/delete.php
  app/config/
  app/config/ignore.php
  app/config/index.php
  </code></pre>
  
  <p>My problem is ignore.php was include because rsync probably ignore --include-from argument.</p>
  
  <p>Need help plz :)</p>
  
  <p>EDIT :</p>
  
  <p>I replace include-from by files-from like that :</p>
  
  <pre><code>rsync -av --files-from=list --delete-excluded --exclude-from=delete src/ dest/
  </code></pre>
  
  <p>This command ignore app/config/include.php like I want BUT app/delete.php wasn't delete.</p>
  
  <p>I try this :</p>
  
  <pre><code>rsync -av --delete-excluded --exclude-from=delete src/ dest/
  </code></pre>
  
  <p>app/delete.php is delete.</p>
  
  <p>Why --files-from and --exclude-from doesn't work together ?</p>