rsync

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.

rsync -avzP --partial -e "ssh" /path/to/source/ user@hiddenssh.com:/path/to/destination/ 

-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.**

πŸ”Ή More Useful Rsync Options:

πŸ”Ή Advanced Rsync SSH Options: