Skip to content

Instantly share code, notes, and snippets.

@msis
Created April 28, 2020 10:39
Show Gist options
  • Save msis/de1405934406a3c77c32f9f5787e35ce to your computer and use it in GitHub Desktop.
Save msis/de1405934406a3c77c32f9f5787e35ce to your computer and use it in GitHub Desktop.
lists recursively all files in SOURCE and parallel rsync them to DESTINATION
find $SOURCE -type f | xargs -n1 -P4 -I% rsync -ahPv % $DESTINATION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment