modified: README.md
This commit is contained in:
17
README.md
17
README.md
@@ -31,6 +31,7 @@
|
|||||||
- [CLI Diagnostics and System Topology](#cli-diagnostics-and-system-topology)
|
- [CLI Diagnostics and System Topology](#cli-diagnostics-and-system-topology)
|
||||||
- [lspci](#lspci)
|
- [lspci](#lspci)
|
||||||
- [sudo](#sudo)
|
- [sudo](#sudo)
|
||||||
|
- [rsync](#rsync)
|
||||||
|
|
||||||
## Distro
|
## Distro
|
||||||
|
|
||||||
@@ -381,3 +382,19 @@ ad user to sudo group:
|
|||||||
```bash
|
```bash
|
||||||
sudo usermod -aG sudo mf
|
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
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user