Understanding Delta Transfers in rsync: Differences, Not Identical Files

Abstract: Explains how rsync uses delta transfers to send only file differences instead of identical content, optimizing bandwidth and transfer speed.

Created: 2026-08-24 by
Rsync utilizes a delta-transfer algorithm to optimize data synchronization by transmitting only the differences between source and destination files rather than copying identical content. This process involves comparing file blocks using checksums to identify changes, ensuring that bandwidth is conserved during remote transfers. Understanding this mechanism clarifies why rsync behaves differently when handling modified versus unchanged files.

How Delta Transfers Work

The core efficiency of rsync lies in its ability to detect changes at the block level. When you initiate a transfer, rsync does not simply compare whole-file hashes immediately. Instead, it generates weak checksums (rolling checksums) for blocks of the source file. These are then compared against similar blocks on the destination. If a match is found, rsync verifies the match with a stronger cryptographic hash, such as MD5 or SHA1, to ensure integrity. Only if the strong hashes differ does rsync proceed to send the actual data difference. This two-step verification process prevents false positives where different data might accidentally produce the same weak checksum. It allows rsync to quickly skip large portions of files that have not changed, focusing computational resources only on the segments that require updating. The result is a significantly faster transfer time, especially over high-latency networks or when dealing with large files that have minor modifications.

The Role of Checksums

It is important to distinguish between the rolling checksums used for initial matching and the final integrity checks. The rolling checksums allow rsync to slide across the file in fixed-size chunks, identifying potential matches efficiently. Once a potential match is identified, the stronger hash confirms whether the blocks are truly identical. If they are, no data is sent. If they differ, rsync calculates the exact byte-level differences and transmits only those deltas. This method ensures that even if a file has been shifted slightly due to an insertion earlier in the document, rsync can still identify unchanged trailing sections.

Identical vs. Similar Files

A common misconception is that rsync transfers "identical" files in some optimized way. In reality, if files are truly identical, rsync performs no data transfer at all. It merely updates metadata, such as timestamps, if the --update flag is used or if the destination lacks the file. The term "delta transfer" specifically refers to the scenario where files are similar but not identical. For example, if you edit a single line in a 10GB log file, rsync will not resend the entire 10GB. It will analyze the file, find the changed block, and send only the necessary bytes to reconstruct the updated version on the destination. This distinction is crucial for understanding network usage. If you observe zero bytes transferred during an rsync operation, it means the files were deemed identical based on size, modification time, and ownership, or the checksums matched perfectly. If you see partial transfers, it indicates that rsync detected structural similarities but also recognized specific differences that needed correction.

Practical Implications for Data Sync

When planning your synchronization strategy, recognizing how rsync handles these comparisons helps in configuring appropriate flags. For instance, using the -u or --update option tells rsync to skip files that already exist on the destination, regardless of their modification time. This is useful when you want to preserve newer files on the target. Conversely, without this flag, rsync will overwrite destination files if the source is newer, triggering the delta-transfer process for any modified content. For scenarios involving sparse files, rsync can further optimize space usage. However, standard delta transfers focus on content differences. If you need to merge directories or handle sub-directory timestamp issues, additional flags like --ignore-existing or specific recursion controls become relevant. You can explore more about directory handling in our guide on Using rsync to Merge Two Source Directories. Another critical aspect is error handling during transfers. If a transfer fails midway, rsync does not resume by re-evaluating checksums mid-stream in the way some protocols do. Instead, it typically restarts the file transfer from the beginning, although the delta-transfer logic remains active for subsequent attempts. This means that for very large files, a failed transfer can be costly in terms of time, unless you use tools that support true streaming resumption. For troubleshooting connectivity issues that prevent successful transfers, refer to our article on Unable to Submit Files via Rsync on Ubuntu VPS.

Optimizing Transfer Performance

To maximize the benefits of delta transfers, ensure that both source and destination systems have compatible versions of rsync. Older versions may lack optimizations present in newer releases, affecting how efficiently blocks are compared. Additionally, network latency plays a significant role. Since rsync sends small packets of delta data, high latency can slow down the handshake process for each block. Using compression with the -z flag can mitigate bandwidth issues but adds CPU overhead. For large-scale synchronizations, consider using the --whole-file option temporarily if delta computation becomes a bottleneck. This forces rsync to copy entire files instead of analyzing them, which can be faster on local networks with low latency but high CPU load. However, for most remote operations, the default delta-transfer behavior remains the most efficient choice for preserving bandwidth and reducing transfer times.

Frequently Asked Questions

Does rsync delete files on the destination that are missing from the source?

No, rsync does not delete files by default. It only copies new or modified files from the source to the destination. To remove extraneous files from the destination, you must explicitly use the --delete flag, which makes the destination an exact mirror of the source.

Why does rsync sometimes take longer than a simple copy command?

Rsync spends time computing checksums and comparing blocks before transferring data. On fast local networks with minimal latency, this overhead can make rsync slower than basic tools like cp or scp, which do not perform detailed analysis before copying.

Can rsync resume a partially completed transfer?

Standard rsync restarts the entire file transfer if interrupted, though it uses delta-transfer logic to avoid sending unchanged blocks again. It does not resume individual byte streams mid-file in the traditional sense; instead, it re-evaluates the file from the start to determine what needs to be sent.

What happens if the source and destination have different block sizes?

Rsync uses a default block size (typically 700 bytes) for its rolling checksums. If files are significantly different in structure, the alignment of blocks may cause inefficiencies. You can adjust the block size using the -B option, but this is rarely necessary for typical use cases.

Is rsync suitable for real-time synchronization?

While rsync is excellent for periodic backups, it is not designed for real-time synchronization out of the box. It requires a trigger mechanism, such as inotifywait or cron jobs, to monitor changes and initiate transfers, unlike dedicated daemon-based sync tools.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More