title: scp recursive command for local to remote copy
body: <p>So, I have been doing some <code>scp</code> stuff recently from my local machine to my server, and today, by <code>mistake</code>, I excecuted the following:</p>
  
  <pre><code>scp -r myfolder foo@192.254.96:/home/myhome .
  </code></pre>
  
  <p>What I meant to do was to copy <code>myfolder</code> from my local machine to my remote, but I had forgot to set the folder and used <code>.</code> at the end by mistake.</p>
  
  <p>Now, the first output I got was:</p>
  
  <pre><code>cp: `myfolder' and `./myfolder' are the same file
  </code></pre>
  
  <p>and then, it went on to transfer a range a files ( a lot of them).</p>
  
  <p>Now, I am totally clueless what happened - and where the transferred files are.</p>
  
  <p>Not that this is of any concern i.e in terms of security etc, but I am trying to learn here what really happened when I used:</p>
  
  <pre><code>scp -r myfolder foo@192.254.96:/home/myhome .
  </code></pre>