Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to download a big quantity of files from other host directly in my VPS via SSH. Reason: The VPS bandwidth is so much faster than my home connection, and I won't download files from the host to my PC and then upload to the VPS.

I've already used wget, which has directory recursion but uses only one connection, making the process slow.

I've also tested aria2 which has multiple connection, but no directory recursion.

share|improve this question
1  
Are you downloading all files from the same 'other server'? Does the speed increase when you start wget twice? (I am asking because you might not gain any speed if you are already filling the bandwidth 'pipe' of one of the two servers). – Hennes Apr 27 '13 at 20:39
up vote 0 down vote accepted

If SSH is setup already, the simplest is probably using scp. scp -r ~/localfolder/ username@remote-host.com:/remote/path/to/files/ will do the job, and copy all directories recursively, as you would expect cp -r to do.

share|improve this answer
    
I used and it significantly increased the download speed. Thanks! – Jay S. Apr 27 '13 at 21:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .