2020-04-30 16:32:50 +00:00
|
|
|
# rsync
|
2020-02-10 11:00:17 +00:00
|
|
|
|
2020-05-10 17:28:17 +00:00
|
|
|
| Distribution | Package |
|
|
|
|
| ------------ | ------- |
|
2020-05-24 10:44:40 +00:00
|
|
|
| Arch Linux | `rsync` |
|
2020-05-10 17:28:17 +00:00
|
|
|
| Ubuntu | `rsync` |
|
2020-12-01 16:10:02 +00:00
|
|
|
| Fedora | `rsync` |
|
2020-07-08 09:10:13 +00:00
|
|
|
| Homebrew | `rsync` |
|
2020-05-10 17:28:17 +00:00
|
|
|
|
2020-02-10 11:00:17 +00:00
|
|
|
```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.
|
2020-02-10 11:10:06 +00:00
|
|
|
|
|
|
|
`-n`: Trial run.
|