title: How to rsync only a specific list of files?
body: <p>I've about 50 or so files in various sub-directories that I'd like to push to a remote server.  I figured rsync would be able to do this for me using the --include-from option. Without the --exclude="*" option, all the files in the directory are being synced, with the option, no files are.</p>
  
  <pre><code>rsync -avP -e ssh --include-from=deploy/rsync_include.txt --exclude=* ./ root@0.0.0.0:/var/www/ --dry-run
  </code></pre>
  
  <p>I'm running it as dry initially and 0.0.0.0 is obviously replaced by the IP of the remote server. The contents of rsync_include.txt is a new line separated list of relative paths to the files I want to upload.</p>
  
  <p>Is there a better way of doing this that is escaping me on a Monday morning?</p>