Skip to content

Instantly share code, notes, and snippets.

@dezren39
Last active April 5, 2020 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dezren39/18cb84679ec6120e78565be4fed2df60 to your computer and use it in GitHub Desktop.
Save dezren39/18cb84679ec6120e78565be4fed2df60 to your computer and use it in GitHub Desktop.
rsync parallel update
ls -d /source/*/ | sed 's/\/*$//g' | xargs -n1 -P4 -I% rsync -Pumah --safe-links --stats --dry-run "%" /dest/ | tee -a result.file
ls -d /source/*/ |
sed 's/\/*$//g' |
xargs -n1 -P4 -I% \
rsync -Pumah --safe-links --stats --dry-run "%" /dest/ |
tee result.file
rsync -Pumah --safe-links --stats /source/* /target/
rsync -Pumah --safe-links --stats /source/folder /target/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment