Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to backup a clients server (source) from our mediatemple server (destination) and then add it into a git repository while ssh'd in.

What is the most efficient/fastest way to do so? wget? or curl?

I only need to do this once. I'm not looking to setup rsync.

Update: I forgot to mention i only have ftp access to the clients server and shell access to our mediatemple server.

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

Unsecure transfer: Use wget. wget is faster than curl. The reason for this is wget fires off multiple requests in parallel.

Secure transfer: Use scp as described by Brendan. wget and curl use SSL encryption for secure transfer. SSL is generally slower than using a SSH Tunnel, which is what scp uses.

share|improve this answer
add comment

You could use 'scp' and run it from your source machine and connect to the remote machine+directory you want the information saved to. It's probably the easiest and requires the least setup (scp is most likely already install on your *nix distro).

Example:

scp SourceFile user@host:directory/TargetFile

Here are some additional sites with different examples and a breakdown of the arguments that can be passed to scp.

Lastly, you can type: man scp on the command line to pull up the manual page for scp

share|improve this answer
    
I don't have ssh to the clients server just our mediatemple server. Don't you need ssh access to scp? –  chrisjlee May 25 '11 at 15:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.