diff --git a/README.md b/README.md index be3ae1f..72f6fe6 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ - [CLI Diagnostics and System Topology](#cli-diagnostics-and-system-topology) - [lspci](#lspci) - [sudo](#sudo) + - [rsync](#rsync) ## Distro @@ -381,3 +382,19 @@ ad user to sudo group: ```bash sudo usermod -aG sudo mf ``` + +### rsync + +Rsync is used to efficiently synchronize files by copying only what has changed. It preserves permissions, timestamps, and directory structure (-a), provides readable output (-h), and shows which files are being processed (-v). Identical files are skipped automatically, making repeated syncs fast and incremental. Adding --info=progress2 displays overall transfer progress and speed. + +``` bash +apt install rsync +``` + +``` bash +rsync -avh source target --progress + +# example over ssh +# Note: rsync bust be installed both on source and target. +rsync -avh ../test_* user@target-address:/home/user/test --progress +```