This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /home/rusti/<dir_list>.txt | parallel --will-cite -j4 time rsync -ahrzp user@<source>:<source_dir> <dest_dir> | |
The fastest remote directory rsync over ssh using GNU utility parallel which will run concurrent threads at the same time. | |
a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files. | |
h: human-readable output numbers in a human-readable format | |
r: recursive | |
z: compress during transfer | |
p: progress | |
-will-cite -j4: four threads, it should not be more than the 1.5 * number of cpu chores you have on your system. |