doc: Add missing '--watch' example for 'mirror' command.

This commit is contained in:
Harshavardhana
2016-08-19 02:37:18 -07:00
committed by GitHub
parent 3a3bc2ffb1
commit 6e943832d5
+13 -3
View File
@@ -623,9 +623,10 @@ USAGE:
mc mirror [FLAGS] SOURCE TARGET
FLAGS:
--help, -h Help of mirror.
--force Force overwrite of an existing target(s).
--fake Perform a fake mirror operation.
--help, -h Help of mirror.
--force Force overwrite of an existing target(s).
--fake Perform a fake mirror operation.
--watch, -w Watch and mirror for changes.
```
@@ -638,6 +639,15 @@ localdir/b.txt: 40 B / 40 B ┃▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
```
*Example: Continuously watch for changes on a local directory and mirror the changes to 'mybucket' on https://play.minio.io:9000*
```sh
$ mc mirror -w localdir play/mybucket
localdir/new.txt: 10 MB / 10 MB ┃▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓┃ 100.00 % 1 MB/s 15s
```
<a name="diff"></a>
### Command `diff` - Show Difference