FTP an entire folder via the command line

Posted by Chris Southam on Server Fault See other posts from Server Fault or by Chris Southam
Published on 2010-08-08T14:09:21Z Indexed on 2011/11/24 10:02 UTC
Read the original article Hit count: 423

Filed under:
|
|
|

I'm looking so migrate some websites to a new server. I have SSH access to the current one but only FTP access to the new one.

How can I via Centos and SSH copy entire folders to the new server via FTP?

I can log into the new server via the built in FTP client on Centos but I'm not sure of the commands after this. I need to move the httpdocs folder from the old to the public_html folder of the new server.

I'd love to do this server to server as it'll be a lot quicker than download -> upload via my broadband connection.

Yours,
Chris

© Server Fault or respective owner

Related posts about ssh

Related posts about centos