Skip to content

Instantly share code, notes, and snippets.

@cwpearson
Last active March 22, 2024 06:21
Show Gist options
  • Save cwpearson/cba26e38c3daf970b2734b2469491eab to your computer and use it in GitHub Desktop.
Save cwpearson/cba26e38c3daf970b2734b2469491eab to your computer and use it in GitHub Desktop.
rsync examples
  • Copy a file to a remote server (with resume if interrupted).

rsync -avz --progress --partial --append-verify file user@remote:path

on macos, you may need

rsync -avz --progress --partial --append file user@remote:path

--progress prints progress. --partial tells the remote to keep partially-transferred files. --append-verify checks that the beginning of the file is the same, does an in-place update to correct mismatches, and then appends the rest of the data on the end.

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