mrsn0.3.0
auth
live

Rsync vs scp: rsync remembers, scp forgets

rsync checksums the destination and moves only changed blocks; scp restarts a transfer that dies at 90%. The one flag to take away: --partial.

2026-11-232 min read

rsync vs scp is a state question. scp opens an SSH channel, streams the bytes, closes, forgets — a drop at 900 MB of 1 GB restarts from zero and re-sends all 1,000 MB. rsync checksums the destination first and moves only changed blocks. Both ship with OpenSSH.

scp after a 900 MB drop
1,000 MB
re-sent — no state between runs
rsync, 4.0 GB file re-run
50 MB
moved; scp moves 4 GB again
the flag to take away
--partial
a drop becomes a pause, not a restart
The protocol changed. The two limits didn't — modern scp speaks SFTP under the hood and still can't resume or send deltas.

rsync vs scp — what does rsync remember?

rsync builds a checksum list of the destination with a rolling-checksum algorithm before it sends. scp keeps no list.

Verdict tablescprsync
Resume a dropped transferNoYes (--partial)
Delta transfer on re-runsNoYes
Keeps permissions / symlinksPartiallyCompletely (-a)
Exclude patternsNo--exclude
Dry runNo--dry-run
Mirrors deletionsNo--delete
Best forone-shot quick copiesbackups, syncs, large trees

Is rsync faster than scp?

On a first copy of a big file over a fast link they're close — both saturate SSH, and the checksum pass adds little. The gap opens in three places:

  1. Bulk small files. rsync chains directory walks and reuses one connection; older scp spawned a process per file. Thousands of small files — node_modules, a WordPress install — finish noticeably faster.
  2. Re-runs. A 4.0 GB file with 50 MB changed: rsync moves ~50 MB, scp moves 4 GB.
  3. Compression. -z compresses on the fly — a help on slow WAN links.
50 MB

changed bytes rsync moves on a re-run of a 4.0 GB file. scp moves the whole 4 GB.

Can scp resume an interrupted transfer?

No — no flag, no trick. rsync is built on the assumption that transfers drop:

rsync -avh --partial --append-verify --progress bigfile.tar.gz user@server:/srv/backup/

until rsync -avh --partial --append-verify --progress \
    ./bigfile.tar.gz user@server:/srv/backup/; do
  sleep 5
done
the one-liner, annotated
rsync -avh --partial --progress src/ user@server:/srv/dest/

-avh = archive (recursive, permissions, times, symlinks), transfers listed, human sizes. --partial keeps half-written files. --append-verify appends then checksums the added region — safe against a corrupt partial, unlike the old --append. --progress shows where it picked up. The trailing slash decides: src/ = contents, src = the directory itself; rsync even warns "no bytes transferred" when you meant the other form. Wrapped in the retry loop above, it's a set-and-forget backup even on a hostile link.

The danger:--delete mirrors deletions — it removes files at the destination that vanished from the source. Dry-run first: rsync -avh --delete --dry-run src/ user@server:/srv/dest/. The dry-run prints the delete list and changes nothing. For a daily or weekly sync, put rsync in a systemd timer and let it carry only the deltas.

When does scp still win?

One small file, once: scp app.conf user@host:/etc/myapp/ beats any rsync invocation. rsync also needs a binary at both ends; many minimal containers ship scp's SFTP server but no rsync. Some environments lock the rsync daemon outright.

The law: default to rsync for backups, large trees, anything run more than once, or any link that can drop. Use scp for a one-shot that can't be interrupted — and add --partial anyway.
  • rsync vs scp — tested on rsync · scp (speaks SFTP under the hood) · existing SSH keys and config
  • first published 2026-09-08; record refreshed 2026-10-04
  • resume behaviour, delta algorithm and the SFTP switch are documented rsync / OpenSSH behaviour, typed from transfers that actually dropped
0appreciations — anonymous, one per reader
your message opens the chat panel on the right — the thread remembers, sources ride inline
the feedanswersthe agentsdocsaboutauthschema.jsonopenapi.jsonllms.txt