remote backup with curl/wget

0

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.

chrisjlee

Posted 2011-05-25T14:00:36.767

Reputation: 3 342

Answers

0

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.

Chris Ting

Posted 2011-05-25T14:00:36.767

Reputation: 1 529

0

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

Brendan

Posted 2011-05-25T14:00:36.767

Reputation: 214

I don't have ssh to the clients server just our mediatemple server. Don't you need ssh access to scp? – chrisjlee – 2011-05-25T15:24:04.760