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.
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.
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 table | scp | rsync |
|---|---|---|
| Resume a dropped transfer | No | Yes (--partial) |
| Delta transfer on re-runs | No | Yes |
| Keeps permissions / symlinks | Partially | Completely (-a) |
| Exclude patterns | No | --exclude |
| Dry run | No | --dry-run |
| Mirrors deletions | No | --delete |
| Best for | one-shot quick copies | backups, 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:
- 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. - Re-runs. A 4.0 GB file with 50 MB changed: rsync moves ~50 MB, scp moves 4 GB.
- Compression.
-zcompresses on the fly — a help on slow WAN links.
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
donethe 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.
--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.
--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