til/use-rsync.md

14 lines
240 B
Markdown
Raw Normal View History

2020-02-10 11:00:17 +00:00
# Use 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.
2020-02-10 11:10:06 +00:00
`-n`: Trial run.