Operations 5 min read

Why rsync Beats scp for Reliable File Transfers (and How to Use It)

This guide explains what rsync is, the platforms it supports, how to install it on Linux and macOS, and provides step‑by‑step commands with key options like -partial and -z to reliably copy files and resume interrupted transfers, offering a more robust alternative to scp.

Liangxu Linux
Liangxu Linux
Liangxu Linux
Why rsync Beats scp for Reliable File Transfers (and How to Use It)

What is rsync?

Rsync is a fast, highly flexible file‑copy tool that works locally, over any remote shell, or via a dedicated rsync daemon. It uses an incremental transfer algorithm that sends only differences between source and destination files, reducing network traffic. It is widely used for backup and mirroring.

Supported platforms

Rsync runs on any Unix‑like system such as Linux and macOS; there are also ports for Windows, though the article does not cover them.

Installation

On Debian/Ubuntu: sudo apt install rsync On RedHat/CentOS: sudo yum install rsync On macOS (Homebrew): brew install rsync Verify the installation:

rsync --version

Basic usage

Copy a file from the local host to a remote host, similar to scp but with more options:

rsync -partial -z -e 'ssh -p 22' linuxmi.cpp [email protected]:/home/linuxmi

Explanation of the options: -partial: keep partially transferred files so a later run can resume. -z: compress data during transfer. -e 'ssh -p 22': use SSH on port 22 as the transport.

Resuming interrupted transfers

If the command was started with -partial and the transfer stops, re‑run the same command; rsync will continue from the point of interruption.

Conclusion

Rsync offers many additional options such as bandwidth limiting, but the key benefit highlighted is its ability to resume interrupted transfers, making it a more reliable alternative to scp.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

LinuxBackuprsyncfile transfer
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.