title: How to use scp with xargs?
body: <p>I am trying to move very big file from one host to another host. Also the file names are too large so I have to use <code>xargs</code>. Also all the sub directories need to be copied also</p>
  
  <p>I am using the below command in the source host current directory</p>
  
  <pre><code>find . -name "*" -type f -print0 | xargs -0 scp -r UserName@host:/path/to/destination
  </code></pre>
  
  <p>but it is throwing below error</p>
  
  <pre><code>scp: /path/to/destination: not a regular file
  </code></pre>