DEV Community

Dmitry Romanoff
Dmitry Romanoff

Posted on

lftp – move files between different Linux remote machines quickly and reliable

It’s based on lftp linux utility, that was written by Russian programmer – Alexander Lukyanov; it is made available under the GNU General Public License.

Among its amazing features, it allows you download files in parallel. The utility is open source and freely available via yum. More about it here: http://en.wikipedia.org/wiki/Lftp

It allows to move huge files by ftp in parallel.

Assume, we have machine A and machine B, and we want to move some heavy file from machine A to machine B.

On machine B:



[my_user_B@machine_B somedir]$ lftp -u my_user_A machine_A

Password: xxxxxxxxxxxxx

lftp my_user_A@machine_A:~> ls

drwxr-xr-x    2 222      111          4096 Jan 08 14:07 .

-rw-r—–    1 222      111      7067885260 Jan 08 14:10 some_huge_file.dmp.gz
drwx——   32 222      111          4096 Jan 08 14:40 ..

lftp my_user_A@machine_A:~> pget -n 10 some_huge_file.dmp.gz

7067885260 bytes transferred in 2471 seconds (2.73M/s)

lftp my_user_A@machine_A:~>


Enter fullscreen mode Exit fullscreen mode

Image description

Transferring the same file, using traditional ftp would take much more:

Image description

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay