Rsync
This section explains how to use rsync securely over SSH to synchronize files between remote systems.
It provides example commands, flag breakdowns, and highlights best practices for data transfer and encryption.
Rsync over SSH enables secure, fast, and efficient file synchronization between remote systems.
By leveraging SSH encryption, it ensures data integrity while transferring files.
-e "ssh" → Uses **SSH** as the transport method for secure file transfers
-a → Preserves file permissions, timestamps, symbolic links, and directories
-v → Enables **verbose mode** to see details during the transfer
-z → Compresses data for **faster transfers** over slow connections
--partial / -P → Keeps **partially transferred files** if interrupted (useful for large files)
--progress → Displays real-time **progress** per file
Rsync Example
Rsync Technical Overview
📌 Copying Files Locally with Rsync
Rsync is not limited to remote transfers—it can be used for **local file copies** with better speed and efficiency than `cp`:
rsync -av /path/to/source/ /path/to/destination/
🚀 Rsync vs. Traditional Commands
Rsync is **not just a file copier**—it outperforms `cp`, `mv`, and even `rm -rf` with **better speed, incremental updates, and error recovery.**