Skip to content

guyskk/watch-rsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# 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` 中的文件,服务器上生成的不会删除

About

Watch PATH and rsync to DEST

Resources

License

Stars

Watchers

Forks

Packages

No packages published