title: How can I recursively copy a directory into another and replace only the files that have not changed?
body: <p>I am looking to do a specific copy in Fedora. </p>
  
  <p>I have two folders:</p>
  
  <ul>
  <li><p>'webroot': holding ALL web files/images etc</p></li>
  <li><p>'export': folder containing thousands of PHP, CSS, JS documents that are exported from my SVN repo.</p></li>
  </ul>
  
  <p>The export directory contains many of the same files/folders that the root does, however the root contains additional ones not found in export.</p>
  
  <p>I'd like to merge all of the contents of export with my webroot with the following options:</p>
  
  <ol>
  <li>Overwriting the file in webroot if export's version contains different code than what
  is inside of webroot's version (live)</li>
  <li>Preserve the permissions/users/groups of the file if it is overwritten (the export
  version replacing the live version) *NOTE I would like the webroots permissions/ownership maintained, but with export's contents</li>
  <li>No prompting/stopping of the copy
  of any kind (ie not verbose)</li>
  <li>Recursive copy - obviously I
  would like to copy all* files
  folders and subfolders found in
  export</li>
  </ol>
  
  <p>I've done a bit of research into cp - would this do the job?: </p>
  
  <pre><code>cp -pruf ./export /path/to/webroot
  </code></pre>