Skip to content

Instantly share code, notes, and snippets.

@pryorda
Last active June 10, 2021 08:36
Show Gist options
  • Save pryorda/68c288bfd46904054f026f0da4ed6d19 to your computer and use it in GitHub Desktop.
Save pryorda/68c288bfd46904054f026f0da4ed6d19 to your computer and use it in GitHub Desktop.
Faster Rsync
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