Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

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
You can’t perform that action at this time.