Last active
June 10, 2021 08:36
-
-
Save pryorda/68c288bfd46904054f026f0da4ed6d19 to your computer and use it in GitHub Desktop.
Faster Rsync
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
find /media/files/ -printf "%P\n" > file_list.txt | |
mkdir -p split_file_list/ | |
split -l 100000 file_list.txt split_file_list/ | |
ls split_file_list/ |parallel -j9 --ungroup rsync --super -e \"ssh -i /home/user/.ssh/key\" --rsync-path=\"sudo rsync\" -aAvp --files-from=split_file_list/{} /media/files/ ubuntu@nfs-server1.*.com:/mnt/data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment