Copying files with fast multithreading parsyncfp
Step-by-Step Guide to fast multithreading parsyncfp
https://github.com/hjmangalam/parsyncfp
Step 1. Save on the File Source - pfp needs to be installed only on the SOURCE
wget https://raw.githubusercontent.com/hjmangalam/parsyncfp/master/parsyncfp
chmod +x parsyncfp
chmod +x parsyncfp
Step 2. Copy the key to the remote machine (it may be necessary to make an ssh-keygen first)
ssh-keygen
ssh-copy-id 1.1.1.1
ssh-copy-id 1.1.1.1
And we have to install
apt-get install fpart
if not in packages, then https://github.com/martymac/fp...
running
./parsyncfp --NP=10 --altcache=/dir/local/tmp --startdir='/dir/local/' www 192.168.67.1:/var/dir/
--altcache - where intermediate files will be stored - not necessary
--NP - number of threads
www - this is the folder that will be copied from /dir/local/ to /var/dir/ - you can specify several folders separated by a space