Skip to content

Instantly share code, notes, and snippets.

@maxrodrigo
Created January 24, 2020 19:14
Show Gist options
  • 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