Skip to main content

Auto Watch

watchdog + rsync完成自动同步小工具

依赖

  1. watchdog

安装方法

  1. pip install autowatch

使用

  1. 进入配置文件所在目录

  2. autowatchme.pyw tricks.yaml

  3. 会在当前目录生成autowatch.log日志文件,查看日志: tailf autowatch.log

trick.yaml配置实例

python-path:
- d:/linux/pyscript

tricks:
- tricks.ShellZCommandTrick:
    source_directory: D:\Workstation\blueking
    target: root@192.168.11.106:/root/workspace"

- tricks.ShellZCommandTrick:
    source_directory: D:\Workstation\blueking\blueking_alarm
    target: root@192.168.11.106:/home/joe/workspace"

autowatch.log日志文件

2015-04-09 00:14:59,780 [INFO] autowatch.cmd tricks.yaml
2015-04-09 00:14:59,780 [INFO] autowatch.cmd D:\linux\pyscript
2015-04-09 00:14:59,780 [INFO] autowatch.events PatternMatching: ['*tricks.yaml']
2015-04-09 00:14:59,782 [INFO] autowatch.cmd Start AutoWatchYaml Success
2015-04-09 00:15:31,500 [INFO] autowatch.events Start <YamlTrick(Thread-3, started daemon 13400)>
2015-04-09 00:15:31,500 [INFO] autowatch.events YamlTrick: ['D:\\linux\\pyscript\\tricks.yaml']

Metadata

Release files for autowatch 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autowatch 1.1.0
File Size Uploaded Provenance Actions
autowatch-1.1.0.tar.gz 4.6 kB Without provenance Details for autowatch-1.1.0.tar.gz

Release files / autowatch-1.1.0.tar.gz

Download URL autowatch-1.1.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7fbe11be18065c9edad0d83b1dd13b23871feb3b1c1bb35e716b155c26d2266f
BLAKE2b-256 checksum
How to use checksums
78996a1df7ac082c3da6d5871ecb41db971d3a26952e2672501498c12bb56428
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for autowatch 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page