title: Extract a specific folder to specific directory from a tar.gz
body: <p>I have searched and found how to the two portions of what I want but nothing that would allow you to do it in whole....</p>
  
  <p>What I would like to do is extract a specific folder from a tar.gz to another folder in a different path that how it is in the tar.gz.</p>
  
  <p>For example:</p>
  
  <ul>
  <li><p>Directory path in my backup.tar.gz file is: a/b/c/d  (d is my main with many others inside)</p></li>
  <li><p>I want to unpack directory 'd' into 'm' inside this different server path: a/b/m</p></li>
  <li><p>If I attempt this code: tar -xzf backup.tar.gz -C a/b/m </p></li>
  </ul>
  
  <p>** The folder structure looks like: a/b/m/a/b/c/d  but I would like it to look like a/b/m+d so that all my main files/folders in the archived 'd' path ends up in the 'm' path</p>
  
  <p>Any help is greatly appreciated.</p>
  
  <p>Thanks!</p>