- 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.