title: rsync how to exclude all in array with spaces?
body: <p><strong>Directories:</strong></p>
  
  <pre><code>$ cd /source/xxx/ &amp;&amp; find deleteme/
  deleteme/
  deleteme/file
  deleteme/ex me
  deleteme/ex me/nono
  deleteme/ex me/nono/a
  deleteme/ex me/touch
  </code></pre>
  
  <p><strong>Script:</strong></p>
  
  <pre><code>#!/bin/bash
  
  SOURCE=/source/xxx/deleteme/
  TARGET=/media/xxx/
  EXCLUDE=("ex me/*")
  INCLUDE=("ex me/touch")
  
  
  for i in "${!EXCLUDE[@]}"
  do
    EXCLUDE[i]="--exclude=${EXCLUDE[i]}"
  done
  
  for i in "${!INCLUDE[@]}"
  do
    INCLUDE[i]="--include=${INCLUDE[i]}"
  done
  
  rsync -avR --delete ${INCLUDE[@]} ${EXCLUDE[@]} "${SOURCE}" "${TARGET}"
  </code></pre>
  
  <p><strong>Result:</strong></p>
  
  <pre><code>$ cd /media/xxx/ &amp;&amp; find deleteme/
  deleteme/
  deleteme/ex me
  deleteme/ex me/nono
  deleteme/ex me/nono/a
  deleteme/ex me/touch
  deleteme/file
  </code></pre>
  
  <p><strong>Expected Result:</strong></p>
  
  <pre><code>$ cd /media/xxx/ &amp;&amp; find deleteme/
  deleteme/
  deleteme/ex me
  deleteme/ex me/touch
  deleteme/file
  </code></pre>
  
  <p><strong>Question</strong></p>
  
  <p>How to get expected result?</p>
  
  <p>Without the space "exme" it works.</p>