20 lines
372 B
Markdown
20 lines
372 B
Markdown
|
# rsync
|
||
|
|
||
|
| Distribution | Package |
|
||
|
| ------------ | ------- |
|
||
|
| Arch Linux | `rsync` |
|
||
|
| Ubuntu | `rsync` |
|
||
|
| Homebrew | `rsync` |
|
||
|
|
||
|
```sh
|
||
|
rsync -vah src dest
|
||
|
```
|
||
|
|
||
|
`--delete`: Delete files exist in dest but not exist in src.
|
||
|
|
||
|
`--ignore-existing`: Ignore updating existing files in dest.
|
||
|
|
||
|
`--exclude-from=FILE`: Exclude pattern files in FILE.
|
||
|
|
||
|
`-n`: Trial run.
|