Thursday, July 25, 2024

SFTP - Parallel File Transfer

 

Using lftp

lftp is a sophisticated file transfer program that supports multiple protocols, including SFTP.

  1. Install lftp if it's not already installed:


    sudo apt-get install lftp # On Debian-based systems sudo yum install lftp # On RedHat-based systems
  2. Use lftp with parallel transfers:


    lftp -u username,password sftp://destination_server -e "mput -P 5 exp_schemas_*.dmp; quit"

    Here, -P 5 specifies the number of parallel transfers.