Update rsync.md (#718)
Clarify folder/folder-content syncing. Add options --partial and -P, since partial helps with network errors and -P is convenient.
This commit is contained in:
parent
a4053b1b8e
commit
6892dc8615
5
rsync.md
5
rsync.md
|
@ -9,7 +9,10 @@ weight: -1
|
||||||
{: .-prime}
|
{: .-prime}
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# syncing folder src into dest:
|
||||||
rsync -avz ./src /dest
|
rsync -avz ./src /dest
|
||||||
|
# syncing the content of src into dest:
|
||||||
|
rsync -avz ./src/ /dest
|
||||||
```
|
```
|
||||||
|
|
||||||
### OSX
|
### OSX
|
||||||
|
@ -25,6 +28,7 @@ rsync -avz ./src /dest
|
||||||
```bash
|
```bash
|
||||||
-z, --compress
|
-z, --compress
|
||||||
-n, --dry-run
|
-n, --dry-run
|
||||||
|
--partial # allows resuming of aborted syncs
|
||||||
```
|
```
|
||||||
|
|
||||||
### Display options
|
### Display options
|
||||||
|
@ -34,6 +38,7 @@ rsync -avz ./src /dest
|
||||||
-v, --verbose
|
-v, --verbose
|
||||||
-h, --human-readable
|
-h, --human-readable
|
||||||
--progress
|
--progress
|
||||||
|
-P # same as --partial --progress
|
||||||
```
|
```
|
||||||
|
|
||||||
### Skipping options
|
### Skipping options
|
||||||
|
|
Loading…
Reference in New Issue