modified: README.md
This commit is contained in:
@@ -425,16 +425,30 @@ sudo usermod -aG sudo ${USERNAME}
|
||||
|
||||
### 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.
|
||||
Rsync is used to efficiently synchronize files by copying (locally or remotely using ssh) only what has changed.
|
||||
|
||||
It preserves:
|
||||
|
||||
- Permissions
|
||||
- Timestamps
|
||||
- Directory structure (-a)
|
||||
|
||||
Options:
|
||||
|
||||
- readable output (-h)
|
||||
- shows which files are being processed (-v)
|
||||
- --info=progress2 displays overall transfer progress and speed.
|
||||
|
||||
Identical files are skipped automatically, making repeated syncs fast and incremental.
|
||||
|
||||
Install (debian/ubuntu):
|
||||
|
||||
``` 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 --info=progress2
|
||||
rsync -avh ./test_* user@target-address:/home/user/tmp --info=progress2
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user