-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
38 lines (25 loc) · 892 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# watch-rsync
一个用来同步代码到服务器的工具
## 安装
直接从 https://github.com/guyskk/watch-rsync/releases 下载可执行文件。
或者
```
pip install watch-rsync
```
## 使用
```
Usage: watch-rsync [OPTIONS] PATH DEST
Watch PATH and rsync to DEST
Example: watch-rsync ./repo host:~/projects
Note: A trailing slash on the PATH changes this behavior to avoid
creating an additional directory level at the DEST.
See also: https://linux.die.net/man/1/rsync
Options:
-d, --duration INTEGER watch duration(ms).
-t, --timeout INTEGER rsync timeout(ms).
--polling use polling observer.
--rsync TEXT rsync executable.
--version Show the version and exit.
--help Show this message and exit.
```
另外,会自动忽略 `.gitignore` 中的文件,服务器上生成的不会删除