Skip to content

Instantly share code, notes, and snippets.

@maxrodrigo
Created January 24, 2020 19:14
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 maxrodrigo/8c3924112979cde08607232ec22716de to your computer and use it in GitHub Desktop.
Save maxrodrigo/8c3924112979cde08607232ec22716de to your computer and use it in GitHub Desktop.

rsync -avhW --no-compress --progress /src/ /dst/

  • -a is for archive, which preserves ownership, permissions etc.
  • -v is for verbose, so I can see what's happening (optional)
  • -h is for human-readable, so the transfer rate and file sizes are easier to read (optional)
  • -W is for copying whole files only, without delta-xfer algorithm which should reduce CPU load
  • --progress so I can see the progress of large files (optional)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment