Using ftp commands from the linux console to transfer files between remote servers

This quick easy bash command will help you to transfer files from one server to another without download and upload to your pc.

coding.jpg

 

Compress the folder at the source server
tar -zcvf file-to-move.tar.zg thefoldername
connect to the remote server with ftp
ftp servername

(you will prompt for the credentials)

Send the file to the remote server
send file-to-move.tar.zg

(will take some time…)

Quit the ftp connection
quit

Nice bashing….

 

About the author
Eduardo Silva was born in Buenos Aires, Argentina, and has being living in London for the past 15 years. With a background in psychology he is a IT developer and the co-founder of open-ecommerce.org, a digital content social enterprise. His passion is digital story-telling and has created short films and documentaries to help people promote there ideas.