How to Trace and Resolve Slow rsync File Synchronization Between Remote Servers Using rsync Options

File synchronization between servers is a backbone task in system administration. While rsync is powerful, performance degradation can be frustratingly difficult to diagnose because the bottleneck could be anywhere: network saturation, file metadata overhead, CPU throttling, or improper options usage.

๐Ÿ” Root Cause & Diagnostic Overview:When rsync slows down unexpectedly, the cause is rarely just 'a slow connection.' Common culprits include:
  • Network Latency/Jitter: High round-trip times (RTT) degrade performance, especially for many small files.
  • CPU Overhead: Excessive compression (-z) or complex filtering can saturate the CPU on either end.
  • File System Metadata Operations: Traversing millions of tiny files requires significant disk I/O and metadata reads, which can bottleneck even fast networks.
  • Partial Transfer Resumption Issues: Incorrect use of options like --partial or failure to handle deletions correctly can cause re-transmissions of unnecessary data.