Skip to content

Instantly share code, notes, and snippets.

@ReidWilliams
Last active October 18, 2019 05:51
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 ReidWilliams/db0929fc6313aeca0237fe63871a471e to your computer and use it in GitHub Desktop.
Save ReidWilliams/db0929fc6313aeca0237fe63871a471e to your computer and use it in GitHub Desktop.

rsync -avh source/ destination

-a, archive (recursive and preserve everything about the file)
-v, verbose
-h, human readable sizes

Also useful:
-n, dry run
-z, compress
--delete, delete files that don't exist on the source side
-c, decide whether to copy based on checksum, rather than default of mod-time and size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment